3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/envs/default.nix

55 lines
1,010 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, click
, jinja2
, terminaltables
, mock
, nose
2019-03-21 11:27:03 +00:00
}:
2018-04-09 17:08:15 +01:00
buildPythonPackage rec {
pname = "envs";
2019-02-14 07:37:15 +00:00
version = "1.3";
2018-04-09 17:08:15 +01:00
2018-06-07 10:32:40 +01:00
src = fetchPypi {
inherit pname version;
2019-02-14 07:37:15 +00:00
sha256 = "ccf5cd85ddb8ed335e39ed8a22e0d23658f5a6d7da430f225e6f750c6f50ae42";
2018-04-09 17:08:15 +01:00
};
patches = [
# https://github.com/capless/envs/pull/19
(fetchpatch {
url = "https://github.com/capless/envs/commit/6947043fa9120a7b17094fd43ee0e1edf808f42b.patch";
sha256 = "0zswg8kp2g922mkc7x34ps37qli1d1mjwna2jfrbnsq2fg4mk818";
})
];
propagatedBuildInputs = [
click
jinja2
terminaltables
];
checkInputs = [
mock
nose
];
checkPhase = ''
runHook preCheck
nosetests --with-isolation
runHook postCheck
'';
2018-04-09 17:08:15 +01:00
meta = with lib; {
description = "Easy access to environment variables from Python";
homepage = "https://github.com/capless/envs";
2018-04-09 17:08:15 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ peterhoeg ];
};
}