nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pytest-cov-stub,
7}:
8
9buildPythonPackage rec {
10 pname = "injector";
11 version = "0.24.0";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "python-injector";
16 repo = "injector";
17 tag = version;
18 hash = "sha256-Pv+3D2eyZiposXMsfhVniGNvlNGb3xSZfjIQBLMcbLA=";
19 };
20
21 nativeCheckInputs = [
22 pytestCheckHook
23 pytest-cov-stub
24 ];
25
26 pythonImportsCheck = [ "injector" ];
27
28 meta = {
29 description = "Python dependency injection framework, inspired by Guice";
30 homepage = "https://github.com/alecthomas/injector";
31 maintainers = [ ];
32 license = lib.licenses.bsd3;
33 };
34}