aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/milc/default.nix38
-rw-r--r--pkgs/development/python-modules/py-air-control-exporter/default.nix24
-rw-r--r--pkgs/development/python-modules/pyatmo/default.nix7
-rw-r--r--pkgs/development/python-modules/uncertainties/default.nix4
4 files changed, 68 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/milc/default.nix b/pkgs/development/python-modules/milc/default.nix
new file mode 100644
index 000000000000..adee40650bce
--- /dev/null
+++ b/pkgs/development/python-modules/milc/default.nix
@@ -0,0 +1,38 @@
+{ stdenv
+, buildPythonPackage
+, fetchFromGitHub
+, appdirs
+, argcomplete
+, colorama
+, gnugrep
+}:
+
+buildPythonPackage rec {
+ pname = "milc";
+ version = "1.0.10";
+
+ src = fetchFromGitHub {
+ owner = "clueboard";
+ repo = "milc";
+ rev = version;
+ sha256 = "04mk057b6jh0k4maqkg80kpilxak9r7vlr9xqwzczh2gs3g2x573";
+ };
+
+ checkInputs = [ gnugrep ];
+ propagatedBuildInputs = [ appdirs argcomplete colorama ];
+
+ # Upstream has a nose2 test suite that runs this hello script in a handful of
+ # ways, but it's not in setup.py and makes assumptions about relative paths in
+ # the src repo, so just sanity-check basic functionality.
+ checkPhase = ''
+ patchShebangs ./hello
+ ./hello | grep "Hello, World"
+ '';
+
+ meta = with stdenv.lib; {
+ description = "An Opinionated Batteries-Included Python 3 CLI Framework";
+ homepage = "https://milc.clueboard.co";
+ license = licenses.mit;
+ maintainers = with maintainers; [ bhipple ];
+ };
+}
diff --git a/pkgs/development/python-modules/py-air-control-exporter/default.nix b/pkgs/development/python-modules/py-air-control-exporter/default.nix
new file mode 100644
index 000000000000..99a0df654fca
--- /dev/null
+++ b/pkgs/development/python-modules/py-air-control-exporter/default.nix
@@ -0,0 +1,24 @@
+{ buildPythonPackage, fetchPypi, flask, isPy27, lib, prometheus_client
+, py-air-control, pytestCheckHook, pytestcov, pytestrunner, setuptools_scm }:
+
+buildPythonPackage rec {
+ pname = "py-air-control-exporter";
+ version = "0.1.4";
+ disabled = isPy27;
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "1f13d3mlj6c3xvkclimahx7gpqqn8z56lh4kwy1d3gkjm7zs9zw9";
+ };
+
+ nativeBuildInputs = [ setuptools_scm ];
+ checkInputs = [ pytestCheckHook pytestcov pytestrunner ];
+ propagatedBuildInputs = [ flask prometheus_client py-air-control ];
+
+ meta = with lib; {
+ description = "Exports Air Quality Metrics to Prometheus.";
+ homepage = "https://github.com/urbas/py-air-control-exporter";
+ license = licenses.mit;
+ maintainers = with maintainers; [ urbas ];
+ };
+}
diff --git a/pkgs/development/python-modules/pyatmo/default.nix b/pkgs/development/python-modules/pyatmo/default.nix
index 971b43147c6c..22acf8725260 100644
--- a/pkgs/development/python-modules/pyatmo/default.nix
+++ b/pkgs/development/python-modules/pyatmo/default.nix
@@ -12,19 +12,20 @@
buildPythonPackage rec {
pname = "pyatmo";
- version = "4.2.0";
+ version = "4.2.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jabesq";
repo = "netatmo-api-python";
rev = "v${version}";
- sha256 = "0b2k1814zg3994k60xdw5gpsl8k1wy9zndd0b1p4dfb5qkx9f8kp";
+ sha256 = "12lmjhqjn71a358nkpzl3dwgiwmmz4lcv9f0qf69ngznpiirk28m";
};
postPatch = ''
substituteInPlace setup.cfg \
- --replace "oauthlib==3.1.0" "oauthlib"
+ --replace "oauthlib~=3.1.0" "oauthlib" \
+ --replace "requests~=2.23.0" "requests"
'';
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/uncertainties/default.nix b/pkgs/development/python-modules/uncertainties/default.nix
index 8cf066245593..84705be59bc1 100644
--- a/pkgs/development/python-modules/uncertainties/default.nix
+++ b/pkgs/development/python-modules/uncertainties/default.nix
@@ -4,11 +4,11 @@
buildPythonPackage rec {
pname = "uncertainties";
- version = "3.1.4";
+ version = "3.1.5";
src = fetchPypi {
inherit pname version;
- sha256 = "0s69kdhl8vhqazhxqdvb06l83x0iqdm0yr4vp3p52alzi6a8lm33";
+ sha256 = "00z9xl40czmqk0vmxjvmjvwb41r893l4dad7nj1nh6blw3kw28li";
};
propagatedBuildInputs = [ future ];