depot/third_party/nixpkgs/pkgs/development/python-modules/simple-di/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

40 lines
792 B
Nix

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