diff --git a/pkgs/development/python-modules/lz4/default.nix b/pkgs/development/python-modules/lz4/default.nix new file mode 100644 index 000000000000..adc0042a52e5 --- /dev/null +++ b/pkgs/development/python-modules/lz4/default.nix @@ -0,0 +1,24 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, nose +}: + +buildPythonPackage rec { + pname = "lz4"; + version = "0.8.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1irad4sq4hdr30fr53smvv3zzk4rddcf9b4jx19w8s9xsxhr1x3b"; + }; + + buildInputs = [ nose ]; + + meta = with stdenv.lib; { + description = "Compression library"; + homepage = https://github.com/python-lz4/python-lz4; + license = licenses.bsd3; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 53b9a4bbd14e..97bfb994c9b4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3047,22 +3047,7 @@ in { ldappool = callPackage ../development/python-modules/ldappool { }; - lz4 = buildPythonPackage rec { - name = "lz4-0.8.2"; - - src = pkgs.fetchurl { - url = "https://pypi.python.org/packages/b5/f0/e1de2bb7feb54011f3c4dcf35b7cca3536e19526764db051b50ea26b58e7/lz4-0.8.2.tar.gz"; - sha256 = "1irad4sq4hdr30fr53smvv3zzk4rddcf9b4jx19w8s9xsxhr1x3b"; - }; - - buildInputs= with self; [ nose ]; - - meta = with stdenv.lib; { - description = "Compression library"; - homepage = https://github.com/python-lz4/python-lz4; - license = licenses.bsd3; - }; - }; + lz4 = callPackage ../development/python-modules/lz4 { }; retrying = buildPythonPackage rec { name = "retrying-${version}";