nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 55 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, six 5, typing-extensions 6, requests 7, yarl 8, pythonOlder 9, fetchFromGitHub 10, poetry-core 11}: 12 13buildPythonPackage rec { 14 pname = "transmission-rpc"; 15 version = "3.3.0"; 16 disabled = pythonOlder "3.6"; 17 18 format = "pyproject"; 19 20 src = fetchFromGitHub { 21 owner = "Trim21"; 22 repo = "transmission-rpc"; 23 rev = "v${version}"; 24 sha256 = "sha256-Ys9trQMCHqxBSaTobWt8WZwi1F8HKTUKaIxvyo6ZPP0="; 25 }; 26 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 37 propagatedBuildInputs = [ 38 six 39 typing-extensions 40 requests 41 yarl 42 ]; 43 44 # no tests 45 doCheck = false; 46 47 pythonImportsCheck = [ "transmission_rpc" ]; 48 49 meta = with lib; { 50 description = "Python module that implements the Transmission bittorent client RPC protocol"; 51 homepage = "https://github.com/Trim21/transmission-rpc"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ eyjhb ]; 54 }; 55}