git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #157127 from eyJhb/transmission-rpc-typing
commit777442a9cbd8988bcc2c3a8ed63ad922ef366366 authorMartin Weinelt <mweinelt@users.noreply.github.com> dateMon 31 Jan 2022, 00:14 (5 years ago) parent3af3d73012a4cb
1 file changed+19−3
pkgs/development/python-modules/transmission-rpc/default.nix+19−3
pkgs/development/python-modules/transmission-rpc/default.nix+19−3
@@ -6,6 +6,8 @@
66, requests
77, yarl
88, pythonOlder
9+, fetchFromGitHub
10+, poetry-core
911}:
1012
1113buildPythonPackage rec {
@@ -13,11 +15,25 @@ buildPythonPackage rec {
1315 version = "3.3.0";
1416 disabled = pythonOlder "3.6";
1517
16− src = fetchPypi {
17− inherit pname version;
18− sha256 = "ef3a931fc1f1db74edf8660e475b9295e0904ee922030ef0e45b0c73f4be65ae";
18+ format = "pyproject";
19+
20+ src = fetchFromGitHub {
21+ owner = "Trim21";
22+ repo = "transmission-rpc";
23+ rev = "v${version}";
24+ sha256 = "sha256-Ys9trQMCHqxBSaTobWt8WZwi1F8HKTUKaIxvyo6ZPP0=";
1925 };
2026
27+ # remove once upstream has tagged version with dumped typing-extensions
28+ postPatch = ''
29+ substituteInPlace pyproject.toml \
30+ --replace 'typing_extensions = ">=3.7.4.2,<4.0.0.0"' 'typing_extensions = "*"'
31+ '';
32+
33+ nativeBuildInputs = [
34+ poetry-core
35+ ];
36+
2137 propagatedBuildInputs = [
2238 six
2339 typing-extensions