Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / phx-class-registry / default.nix
blob0997f7987ada841e4fb643f4401679be3acb3585
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "class-registry";
10   version = "4.1.0";
11   disabled = pythonOlder "3.5";
13   src = fetchFromGitHub {
14     owner = "todofixthis";
15     repo = pname;
16     rev = "refs/tags/${version}";
17     hash = "sha256-kJbyUzyklVSvW6bBxTTTrY+WhfcV0GUf/+Pzyv+7sEA=";
18   };
20   nativeCheckInputs = [
21     pytestCheckHook
22   ];
24   pythonImportsCheck = [
25     "class_registry"
26   ];
28   meta = with lib; {
29     description = "Factory and registry pattern for Python classes";
30     homepage = "https://class-registry.readthedocs.io/en/latest/";
31     license = licenses.mit;
32     maintainers = with maintainers; [ hrdinka tomhoule ];
33   };