diff --git a/pkgs/development/python-modules/pysocks/default.nix b/pkgs/development/python-modules/pysocks/default.nix new file mode 100644 index 000000000000..83437cd1201a --- /dev/null +++ b/pkgs/development/python-modules/pysocks/default.nix @@ -0,0 +1,23 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "pysocks"; + version = "1.6.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "0h9zwr8z9j6l313ns335irjrkk6qnk4qzvwmjqygrp7mbwi9lh82"; + }; + + doCheck = false; + + meta = with stdenv.lib; { + description = "SOCKS module for Python"; + license = licenses.bsd3; + maintainers = with maintainers; [ thoughtpolice ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e644e9792960..bd079b951b49 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3404,23 +3404,7 @@ in { pysnmp = callPackage ../development/python-modules/pysnmp { }; - pysocks = buildPythonPackage rec { - name = "pysocks-${version}"; - version = "1.6.6"; - - src = pkgs.fetchurl { - url = "mirror://pypi/P/PySocks/PySocks-${version}.tar.gz"; - sha256 = "0h9zwr8z9j6l313ns335irjrkk6qnk4qzvwmjqygrp7mbwi9lh82"; - }; - - doCheck = false; - - meta = { - description = "SOCKS module for Python"; - license = licenses.bsd3; - maintainers = with maintainers; [ thoughtpolice ]; - }; - }; + pysocks = callPackage ../development/python-modules/pysocks { }; python_fedora = callPackage ../development/python-modules/python_fedora {};