diff --git a/pkgs/development/python-modules/transmission-rpc/default.nix b/pkgs/development/python-modules/transmission-rpc/default.nix new file mode 100644 index 000000000000..235540209e37 --- /dev/null +++ b/pkgs/development/python-modules/transmission-rpc/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchPypi +, six +, typing-extensions +, requests +, yarl +}: + +buildPythonPackage rec { + pname = "transmission-rpc"; + version = "3.2.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1y5048109j6z4smzwysvdjfn6cj9698dsxfim9i4nqam4nmw2wi7"; + }; + + propagatedBuildInputs = [ + six + typing-extensions + requests + yarl + ]; + + # no tests + doCheck = false; + pythonImportsCheck = [ "transmission_rpc" ]; + + meta = with lib; { + description = "Python module that implements the Transmission bittorent client RPC protocol"; + homepage = "https://pypi.python.org/project/transmission-rpc/"; + license = licenses.mit; + maintainers = with maintainers; [ eyjhb ]; + }; +} diff --git a/pkgs/development/python-modules/transmissionrpc/default.nix b/pkgs/development/python-modules/transmissionrpc/default.nix deleted file mode 100644 index a9f3042fb397..000000000000 --- a/pkgs/development/python-modules/transmissionrpc/default.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -}: - -buildPythonPackage rec { - pname = "transmissionrpc"; - version = "0.11"; - - src = fetchPypi { - inherit pname version; - sha256 = "ec43b460f9fde2faedbfa6d663ef495b3fd69df855a135eebe8f8a741c0dde60"; - }; - - propagatedBuildInputs = [ six ]; - - # no tests - doCheck = false; - - meta = with lib; { - description = "Python implementation of the Transmission bittorent client RPC protocol"; - homepage = "https://pypi.python.org/pypi/transmissionrpc/"; - license = licenses.mit; - }; -} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9442898c16e5..14879c2ef08e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7927,7 +7927,9 @@ in { translationstring = callPackage ../development/python-modules/translationstring { }; - transmissionrpc = callPackage ../development/python-modules/transmissionrpc { }; + transmission-rpc = callPackage ../development/python-modules/transmission-rpc { }; + + transmissionrpc = self.transmission-rpc; # alias for compatibility 2020-02-07 treq = callPackage ../development/python-modules/treq { };