nixpkgs/pkgs/development/python-modules/simple-di/default.nix
2021-11-11 17:23:20 +01:00

41 lines
780 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, setuptools
, typing-extensions
, dataclasses
}:
buildPythonPackage rec {
pname = "simple_di";
version = "0.1.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0wqbfbajnwmkzih0jl3mncalr7dslvmwhb5mk11asqvmbp1xhn30";
};
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 ];
};
}