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

39 lines
649 B
Nix
Raw Normal View History

2019-02-24 15:23:15 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, 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
};
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";
homepage = "https://github.com/pyviz/pyct";
2019-02-24 15:23:15 +00:00
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}