3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/dependency-injector/default.nix
Martin Weinelt 49f5c89c03
Merge pull request #110267 from r-ryantm/auto-update/python3.7-dependency-injector
python37Packages.dependency-injector: 4.5.4 -> 4.10.3
2021-02-08 03:30:15 +01:00

33 lines
789 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k, six, unittest2, pyyaml, flask }:
let
testPath =
if isPy3k
then "test_*_py3.py"
else "test_*_py2_py3.py";
in
buildPythonPackage rec {
pname = "dependency-injector";
version = "4.10.3";
src = fetchPypi {
inherit pname version;
sha256 = "93db83fac85bcb861469c0db1af11f4bc874aa2f9380151189a05d38c21afd60";
};
propagatedBuildInputs = [ six ];
checkInputs = [ unittest2 pyyaml flask ];
checkPhase = ''
unit2 discover -s tests/unit -p "${testPath}"
'';
meta = with lib; {
description = "Dependency injection microframework for Python";
homepage = "https://github.com/ets-labs/python-dependency-injector";
license = licenses.bsd3;
maintainers = with maintainers; [ gerschtli ];
};
}