83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
34 lines
725 B
Nix
34 lines
725 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "class-registry";
|
|
version = "4.0.6";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "todofixthis";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-kSEHgzBgnAq5rMv2HbmGl+9CUzsmzUzPQWr+5q8mcsA=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"class_registry"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Factory and registry pattern for Python classes";
|
|
homepage = "https://class-registry.readthedocs.io/en/latest/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kevincox SuperSandro2000 ];
|
|
};
|
|
}
|