at master 897 B view raw
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 hatch-vcs, 5 hatchling, 6 lib, 7 nix-update-script, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "inject"; 13 version = "5.3.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "ivankorobkov"; 18 repo = "python-inject"; 19 tag = "v${version}"; 20 hash = "sha256-c/OpEsT9KF7285xfD+VRorrNHn3r9IPp/ts9JHyGK9s="; 21 }; 22 23 build-system = [ 24 hatchling 25 hatch-vcs 26 ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "inject" ]; 33 34 passthru.updateScript = nix-update-script { }; 35 36 meta = { 37 description = "Python dependency injection framework"; 38 homepage = "https://github.com/ivankorobkov/python-inject"; 39 changelog = "https://github.com/ivankorobkov/python-inject/blob/${version}/CHANGES.md"; 40 license = lib.licenses.asl20; 41 maintainers = with lib.maintainers; [ perchun ]; 42 }; 43}