2017-05-14 22:27:01 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plac";
|
2019-10-23 17:28:57 +00:00
|
|
|
version = "1.1.0";
|
2017-05-14 22:27:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-23 17:28:57 +00:00
|
|
|
sha256 = "10f0blwxn7k2qvd0vs4300jxb8n9r7jhngf9bx9bfxia8akwy5kw";
|
2017-05-14 22:27:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd doc
|
|
|
|
${python.interpreter} -m unittest discover -p "*test_plac*"
|
|
|
|
'';
|
2019-10-24 06:47:42 +00:00
|
|
|
|
2017-05-14 22:27:01 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|