nixpkgs-suyu/pkgs/development/python-modules/plac/default.nix

27 lines
586 B
Nix
Raw Normal View History

2017-05-15 00:27:01 +02:00
{ stdenv
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
pname = "plac";
2019-11-11 12:13:39 +01:00
version = "1.1.3";
2017-05-15 00:27:01 +02:00
src = fetchPypi {
inherit pname version;
2019-11-11 12:13:39 +01:00
sha256 = "398cb947c60c4c25e275e1f1dadf027e7096858fb260b8ece3b33bcff90d985f";
2017-05-15 00:27:01 +02:00
};
checkPhase = ''
cd doc
${python.interpreter} -m unittest discover -p "*test_plac*"
'';
2019-10-24 08:47:42 +02:00
2017-05-15 00:27:01 +02:00
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 ];
};
}