From eb90391331430e3fdecae2e67f9b992fe1aa65bf Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 26 Oct 2018 11:03:11 -0400 Subject: [PATCH] pythonPackages.pysocks: refactor move to python-modules --- .../python-modules/pysocks/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 18 +-------------- 2 files changed, 24 insertions(+), 17 deletions(-) create mode 100644 pkgs/development/python-modules/pysocks/default.nix 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 {};