1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 09:53:17 +00:00
nixpkgs/pkgs/development/python-modules/dependency-injector/default.nix
2019-06-15 08:44:04 +02:00

33 lines
769 B
Nix

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