git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.class-registry: make alias of phx-class-registry
commitdb26b5ce1769792951df844b193ee531013cc18e authorRobert Schütz <nix@dotlambda.de> dateTue 5 Oct 2021, 18:06 (5 years ago) parent7882b7f
5 files changed+22−50
pkgs/development/python-modules/class-registry/default.nix−32 pkgs/development/python-modules/phx-class-registry/default.nix+21−15 pkgs/development/tools/backblaze-b2/default.nix−1 pkgs/top-level/python-aliases.nix+1 pkgs/top-level/python-packages.nix−2
pkgs/development/python-modules/class-registry/default.nixdeleted−32
@@ -1,32 +0,0 @@
1−{ lib
2−, buildPythonPackage
3−, fetchFromGitHub
4−, nose
5−, pythonOlder
6−}:
7−
8−buildPythonPackage rec {
9− pname = "class-registry";
10− version = "3.0.5";
11− disabled = pythonOlder "3.5";
12−
13− src = fetchFromGitHub {
14− owner = "todofixthis";
15− repo = pname;
16− rev = version;
17− sha256 = "0gpvq4a6qrr2iki6b4vxarjr1jrsw560m2qzm5bb43ix8c8b7y3q";
18− };
19−
20− checkInputs = [
21− nose
22− ];
23−
24− pythonImportsCheck = [ "class_registry" ];
25−
26− meta = with lib; {
27− description = "Factory and registry pattern for Python classes";
28− homepage = "https://class-registry.readthedocs.io/en/latest/";
29− license = licenses.mit;
30− maintainers = with maintainers; [ kevincox ];
31− };
32−}
pkgs/development/python-modules/phx-class-registry/default.nix+21−15
@@ -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}
pkgs/development/tools/backblaze-b2/default.nix−1
@@ -29,7 +29,6 @@ python3Packages.buildPythonApplication rec {
2929
3030 propagatedBuildInputs = with python3Packages; [
3131 b2sdk
32− class-registry
3332 phx-class-registry
3433 setuptools
3534 docutils
pkgs/top-level/python-aliases.nix+1
@@ -36,6 +36,7 @@ mapAliases ({
3636 blockdiagcontrib-cisco = throw "blockdiagcontrib-cisco is not compatible with blockdiag 2.0.0 and has been removed."; # Added 2020-11-29
3737 bt_proximity = bt-proximity; # added 2021-07-02
3838 bugseverywhere = throw "bugseverywhere has been removed: Abandoned by upstream."; # Added 2019-11-27
39+ class-registry = phx-class-registry; # added 2021-10-05
3940 ConfigArgParse = configargparse; # added 2021-03-18
4041 dateutil = python-dateutil; # added 2021-07-03
4142 detox = throw "detox is no longer maintained, and was broken since may 2019"; # added 2020-07-04
pkgs/top-level/python-packages.nix−2
@@ -1501,8 +1501,6 @@ in {
15011501
15021502 ckcc-protocol = callPackage ../development/python-modules/ckcc-protocol { };
15031503
1504− class-registry = callPackage ../development/python-modules/class-registry { };
1505−
15061504 claripy = callPackage ../development/python-modules/claripy { };
15071505
15081506 cld2-cffi = callPackage ../development/python-modules/cld2-cffi { };