Skip to content

Commit 1085cdf

Browse files
authored
Merge pull request #334128 from pbsds/init-methodtools-1723466127
python312Packages.methodtools: init at 0.4.7
2 parents 94c6636 + be71cac commit 1085cdf

File tree

3 files changed

+86
-0
lines changed

3 files changed

+86
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
6+
wirerope,
7+
pytestCheckHook,
8+
pytest-cov-stub,
9+
}:
10+
11+
buildPythonPackage rec {
12+
pname = "methodtools";
13+
version = "0.4.7";
14+
pyproject = true;
15+
16+
src = fetchFromGitHub {
17+
owner = "youknowone";
18+
repo = "methodtools";
19+
rev = version;
20+
hash = "sha256-Y5VdYVSb3A+32waUUoIDDGW+AhRapN71pebTTlJC0es=";
21+
};
22+
23+
build-system = [ setuptools ];
24+
25+
dependencies = [ wirerope ];
26+
27+
pythonImportsCheck = [ "methodtools" ];
28+
29+
nativeCheckInputs = [
30+
pytestCheckHook
31+
pytest-cov-stub
32+
];
33+
34+
meta = with lib; {
35+
description = "Expands the functools lru_cache to classes";
36+
homepage = "https://github.com/youknowone/methodtools";
37+
changelog = "https://github.com/youknowone/methodtools/releases/tag/${version}";
38+
license = licenses.bsd2WithViews;
39+
maintainers = with maintainers; [ pbsds ];
40+
};
41+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
6+
six,
7+
pytestCheckHook,
8+
pytest-cov-stub,
9+
}:
10+
11+
buildPythonPackage rec {
12+
pname = "wirerope";
13+
version = "0.4.7";
14+
pyproject = true;
15+
16+
src = fetchFromGitHub {
17+
owner = "youknowone";
18+
repo = "wirerope";
19+
rev = version;
20+
hash = "sha256-Xi6I/TXttjCregknmZUhV5GAiNR/HmEi4wCZiCmp0DQ=";
21+
};
22+
23+
build-system = [ setuptools ];
24+
25+
dependencies = [ six ];
26+
27+
pythonImportsCheck = [ "wirerope" ];
28+
29+
nativeCheckInputs = [
30+
pytestCheckHook
31+
pytest-cov-stub
32+
];
33+
34+
meta = with lib; {
35+
description = "Wrappers for class callables";
36+
homepage = "https://github.com/youknowone/wirerope";
37+
changelog = "https://github.com/youknowone/wirerope/releases/tag/${version}";
38+
license = licenses.bsd2WithViews;
39+
maintainers = with maintainers; [ pbsds ];
40+
};
41+
}

pkgs/top-level/python-packages.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7726,6 +7726,8 @@ self: super: with self; {
77267726

77277727
meteofrance-api = callPackage ../development/python-modules/meteofrance-api { };
77287728

7729+
methodtools = callPackage ../development/python-modules/methodtools { };
7730+
77297731
mezzanine = callPackage ../development/python-modules/mezzanine { };
77307732

77317733
mf2py = callPackage ../development/python-modules/mf2py { };
@@ -17550,6 +17552,8 @@ self: super: with self; {
1755017552

1755117553
winsspi = callPackage ../development/python-modules/winsspi { };
1755217554

17555+
wirerope = callPackage ../development/python-modules/wirerope { };
17556+
1755317557
withings-api = callPackage ../development/python-modules/withings-api { };
1755417558

1755517559
withings-sync = callPackage ../development/python-modules/withings-sync { };

0 commit comments

Comments
 (0)