2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2017-05-14 22:27:01 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plac";
|
2021-12-07 09:29:04 +00:00
|
|
|
version = "1.3.4";
|
2017-05-14 22:27:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-07 09:29:04 +00:00
|
|
|
sha256 = "c91a4c9f9cc67c7e7213b6823b0ea15cd0afe5eaf8f8dda1fe5cb10192b137f5";
|
2017-05-14 22:27:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
2021-09-18 09:22:27 +00:00
|
|
|
cd doc
|
|
|
|
${python.interpreter} -m unittest discover -p "*test_plac*"
|
|
|
|
'';
|
2019-10-24 06:47:42 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-14 22:27:01 +00:00
|
|
|
description = "Parsing the Command Line the Easy Way";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/micheles/plac";
|
2017-05-14 22:27:01 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2021-09-18 09:22:27 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
2017-05-14 22:27:01 +00:00
|
|
|
}
|