summary refs log tree commit diff
path: root/pkgs/development/python-modules/plac
diff options
context:
space:
mode:
authorSasha Delly <shura.sdll@gmail.com>2017-05-14 22:27:01 +0000
committerFrederik Rietdijk <fridh@fridh.nl>2017-08-13 22:41:30 +0200
commit3fe916dd4af296657a193c1dfef5d31deccca364 (patch)
tree1b15bc6460427a1e2b76287b3937f4d15a56d42d /pkgs/development/python-modules/plac
parentb5b2890278331ceaa21b237f6aa29fa2a946a5e7 (diff)
downloadnixlib-3fe916dd4af296657a193c1dfef5d31deccca364.tar
nixlib-3fe916dd4af296657a193c1dfef5d31deccca364.tar.gz
nixlib-3fe916dd4af296657a193c1dfef5d31deccca364.tar.bz2
nixlib-3fe916dd4af296657a193c1dfef5d31deccca364.tar.lz
nixlib-3fe916dd4af296657a193c1dfef5d31deccca364.tar.xz
nixlib-3fe916dd4af296657a193c1dfef5d31deccca364.tar.zst
nixlib-3fe916dd4af296657a193c1dfef5d31deccca364.zip
plac: init at 0.9.6
Diffstat (limited to 'pkgs/development/python-modules/plac')
-rw-r--r--pkgs/development/python-modules/plac/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/plac/default.nix b/pkgs/development/python-modules/plac/default.nix
new file mode 100644
index 000000000000..4ca6d0e08d10
--- /dev/null
+++ b/pkgs/development/python-modules/plac/default.nix
@@ -0,0 +1,27 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, python
+}:
+buildPythonPackage rec {
+  name = "${pname}-${version}";
+  pname = "plac";
+  version = "0.9.6";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "16zqpalx4i1n1hrcvaj8sdixapy2g76fc13bbahz0xc106d72gxs";
+  };
+
+  checkPhase = ''
+      cd doc
+      ${python.interpreter} -m unittest discover -p "*test_plac*"
+    '';
+  
+  meta = with stdenv.lib; {
+    description = "Parsing the Command Line the Easy Way";
+    homepage = https://github.com/micheles/plac;
+    license = licenses.bsdOriginal;
+    maintainers = with maintainers; [ sdll ];
+    };
+}