2018-09-21 19:08:02 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, six, unittest2 }:
|
2018-09-01 16:29:47 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dependency-injector";
|
2018-11-04 10:34:57 +00:00
|
|
|
version = "3.14.0";
|
2018-09-01 16:29:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:34:57 +00:00
|
|
|
sha256 = "14b2e48c272b546c1a2e76943df0e8e28b5a791cdec5388bc526132b10b09d42";
|
2018-09-01 16:29:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
2018-09-21 19:08:02 +01:00
|
|
|
checkInputs = [ unittest2 ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
unit2 discover tests/unit
|
|
|
|
'';
|
2018-09-01 16:29:47 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|