aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/plac
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-05 12:43:18 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-05 12:44:52 +0000
commitcf85056ba64caf3267d43255ef4a1243e9c8ee3b (patch)
tree3051519e9c8275b870aac43f80af875715c9d124 /nixpkgs/pkgs/development/python-modules/plac
parent1148b1d122bc03e9a3665856c9b7bb96bd4e3994 (diff)
parent2436c27541b2f52deea3a4c1691216a02152e729 (diff)
Add 'nixpkgs/' from commit '2436c27541b2f52deea3a4c1691216a02152e729'
git-subtree-dir: nixpkgs git-subtree-mainline: 1148b1d122bc03e9a3665856c9b7bb96bd4e3994 git-subtree-split: 2436c27541b2f52deea3a4c1691216a02152e729
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/plac')
-rw-r--r--nixpkgs/pkgs/development/python-modules/plac/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/plac/default.nix b/nixpkgs/pkgs/development/python-modules/plac/default.nix
new file mode 100644
index 00000000000..d0e7b0d81ee
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/plac/default.nix
@@ -0,0 +1,26 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, python
+}:
+buildPythonPackage rec {
+ pname = "plac";
+ version = "1.0.0";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "b03f967f535b3bf5a71b191fa5eb09872a5cfb1e3b377efc4138995e10ba36d7";
+ };
+
+ 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 ];
+ };
+}