about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pipdate
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2019-05-20 10:54:11 -0400
committerChris Ostrouchov <chris.ostrouchov@gmail.com>2019-05-20 10:54:11 -0400
commitbec3cfaec34163dbd311f1f7d5b56015a6b340b9 (patch)
tree5dd04af944177797ba3e322f9c291c9cbef7b066 /pkgs/development/python-modules/pipdate
parente94d85737383ccbb6e221945646dce4551190e1d (diff)
pythonPackages.pipdate: init at 0.3.2
Diffstat (limited to 'pkgs/development/python-modules/pipdate')
-rw-r--r--pkgs/development/python-modules/pipdate/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pipdate/default.nix b/pkgs/development/python-modules/pipdate/default.nix
new file mode 100644
index 0000000000000..8628705ed4d68
--- /dev/null
+++ b/pkgs/development/python-modules/pipdate/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, appdirs
+, requests
+, pytest
+}:
+
+buildPythonPackage rec {
+  pname = "pipdate";
+  version = "0.3.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "a27f64d13269adfd8594582f5a62c9f2151b426e701afdfc3b4f4019527b4121";
+  };
+
+  propagatedBuildInputs = [
+    appdirs
+    requests
+  ];
+
+  checkInputs = [
+    pytest
+  ];
+
+  checkPhase = ''
+    HOME=$(mktemp -d) pytest test/test_pipdate.py
+  '';
+
+  # tests require network access
+  doCheck = false;
+
+  meta = with lib; {
+    description = "pip update helpers";
+    homepage = https://github.com/nschloe/pipdate;
+    license = licenses.mit;
+    maintainers = [ maintainers.costrouc ];
+  };
+}