2021-10-28 06:52:43 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
|
|
|
, typing-extensions
|
|
|
|
, dataclasses
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "simple_di";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.1.4";
|
2021-12-06 16:07:01 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "2667f2b9095e86c7726b3853c30b37f527f7d247282c7dd0b3428a7fb5d1a8a9";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
typing-extensions
|
|
|
|
] ++ lib.optional (pythonOlder "3.7") [
|
|
|
|
dataclasses
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"simple_di"
|
|
|
|
];
|
|
|
|
|
|
|
|
# pypi distribution contains no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
meta = {
|
|
|
|
description = "Simple dependency injection library";
|
|
|
|
homepage = "https://github.com/bentoml/simple_di";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ sauyon ];
|
|
|
|
};
|
|
|
|
}
|