2018-09-21 20:08:02 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, six, unittest2 }:
|
2018-09-01 17:29:47 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dependency-injector";
|
2018-09-21 20:08:02 +02:00
|
|
|
version = "3.13.2";
|
2018-09-01 17:29:47 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-09-21 20:08:02 +02:00
|
|
|
sha256 = "0kgb40qspibr1x8ksv0whrr7v0jy20dnqzmc591hm2y4kwzl5hdw";
|
2018-09-01 17:29:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
2018-09-21 20:08:02 +02:00
|
|
|
checkInputs = [ unittest2 ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
unit2 discover tests/unit
|
|
|
|
'';
|
2018-09-01 17:29:47 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|