diff --git a/pkgs/development/python-modules/stem/default.nix b/pkgs/development/python-modules/stem/default.nix new file mode 100644 index 000000000000..68ad178bd4b0 --- /dev/null +++ b/pkgs/development/python-modules/stem/default.nix @@ -0,0 +1,18 @@ +{ lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "stem"; + version = "1.6.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1va9p3ij7lxg6ixfsvaql06dn11l3fgpxmss1dhlvafm7sqizznp"; + }; + + meta = with lib; { + description = "Controller library that allows applications to interact with Tor"; + homepage = https://stem.torproject.org/; + license = licenses.gpl3; + maintainers = with maintainers; [ phreedom ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5a5012f10d11..431ae02c9fdf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6324,23 +6324,7 @@ in { schema = callPackage ../development/python-modules/schema {}; - stem = buildPythonPackage rec { - name = "stem-${version}"; - version = "1.6.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/stem/${name}.tar.gz"; - sha256 = "1va9p3ij7lxg6ixfsvaql06dn11l3fgpxmss1dhlvafm7sqizznp"; - }; - - meta = { - description = "Controller library that allows applications to interact with Tor (https://www.torproject.org/"; - homepage = https://stem.torproject.org/; - license = licenses.gpl3; - maintainers = with maintainers; [ phreedom ]; - }; - - }; + stem = callPackage ../development/python-modules/stem { }; svg-path = buildPythonPackage rec { name = "svg.path-${version}";