@@ -1,28 +1,34 @@
1−{ lib, buildPythonPackage, fetchPypi, isPy27, pytestCheckHook }:
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytestCheckHook
5+, pythonOlder
6+}:
27
38buildPythonPackage rec {
4− pname = "phx-class-registry";
9+ pname = "class-registry";
510 version = "3.0.5";
11+ disabled = pythonOlder "3.5";
612
7− disabled = isPy27;
8−
9− src = fetchPypi {
10− inherit pname version;
11− sha256 = "14iap8db2ldmnlf5kvxs52aps31rl98kpa5nq8wdm30a86n6457i";
13+ src = fetchFromGitHub {
14+ owner = "todofixthis";
15+ repo = pname;
16+ rev = version;
17+ sha256 = "0gpvq4a6qrr2iki6b4vxarjr1jrsw560m2qzm5bb43ix8c8b7y3q";
1218 };
1319
14− checkInputs = [ pytestCheckHook ];
20+ checkInputs = [
21+ pytestCheckHook
22+ ];
1523
16− disabledTests = [
17− "test_branding"
18− "test_happy_path"
19− "test_len"
24+ pythonImportsCheck = [
25+ "class_registry"
2026 ];
2127
2228 meta = with lib; {
23− description = "Registry pattern for Python classes, with setuptools entry points integration";
24− homepage = "https://github.com/todofixthis/class-registry";
29+ description = "Factory and registry pattern for Python classes";
30+ homepage = "https://class-registry.readthedocs.io/en/latest/";
2531 license = licenses.mit;
26− maintainers = with maintainers; [ SuperSandro2000 ];
32+ maintainers = with maintainers; [ kevincox SuperSandro2000 ];
2733 };
2834}