2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2017-05-14 23:27:01 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plac";
|
2021-03-24 09:28:20 +00:00
|
|
|
version = "1.3.3";
|
2017-05-14 23:27:01 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:20 +00:00
|
|
|
sha256 = "51e332dabc2aed2cd1f038be637d557d116175101535f53eaa7ae854a00f2a74";
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-14 23:27:01 +01:00
|
|
|
description = "Parsing the Command Line the Easy Way";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/micheles/plac";
|
2017-05-14 23:27:01 +01:00
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = with maintainers; [ sdll ];
|
|
|
|
};
|
|
|
|
}
|