2019-02-24 15:23:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-11-05 23:22:17 +00:00
|
|
|
, isPy27
|
2019-02-24 15:23:15 +00:00
|
|
|
, param
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyct";
|
2020-10-25 09:06:55 +00:00
|
|
|
version = "0.4.8";
|
2019-02-24 15:23:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:55 +00:00
|
|
|
sha256 = "23d7525b5a1567535c093aea4b9c33809415aa5f018dd77f6eb738b1226df6f7";
|
2019-02-24 15:23:15 +00:00
|
|
|
};
|
|
|
|
|
2020-11-05 23:22:17 +00:00
|
|
|
doCheck = !isPy27;
|
2019-02-24 15:23:15 +00:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
param
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cli for python common tasks for users";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pyviz/pyct";
|
2019-02-24 15:23:15 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|