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

27 lines
588 B
Nix
Raw Normal View History

2017-05-14 23:27:01 +01:00
{ stdenv
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
pname = "plac";
2020-06-06 07:47:22 +01:00
version = "1.2.0";
2017-05-14 23:27:01 +01:00
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:22 +01:00
sha256 = "ca03587234e5bdd2a3fa96f19a04a01ebb5b0cd66d48ecb5a54d42bc9b287320";
2017-05-14 23:27:01 +01:00
};
checkPhase = ''
cd doc
${python.interpreter} -m unittest discover -p "*test_plac*"
'';
2019-10-24 07:47:42 +01:00
2017-05-14 23:27:01 +01:00
meta = with stdenv.lib; {
description = "Parsing the Command Line the Easy Way";
homepage = "https://github.com/micheles/plac";
2017-05-14 23:27:01 +01:00
license = licenses.bsdOriginal;
maintainers = with maintainers; [ sdll ];
};
}