2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2021-10-06 13:57:05 +00:00
|
|
|
}:
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-10-06 13:57:05 +00:00
|
|
|
pname = "class-registry";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "4.1.0";
|
2021-10-06 13:57:05 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2021-10-06 13:57:05 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "todofixthis";
|
|
|
|
repo = pname;
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-kJbyUzyklVSvW6bBxTTTrY+WhfcV0GUf/+Pzyv+7sEA=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "class_registry" ];
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-10-06 13:57:05 +00:00
|
|
|
description = "Factory and registry pattern for Python classes";
|
|
|
|
homepage = "https://class-registry.readthedocs.io/en/latest/";
|
2020-11-30 08:33:03 +00:00
|
|
|
license = licenses.mit;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
hrdinka
|
|
|
|
tomhoule
|
|
|
|
];
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
}
|