about summary refs log tree commit diff
path: root/pkgs/development/python-modules/zipstream/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/zipstream/default.nix')
-rw-r--r--pkgs/development/python-modules/zipstream/default.nix12
1 files changed, 5 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/zipstream/default.nix b/pkgs/development/python-modules/zipstream/default.nix
index aac2bceeb15d2..4d5fabe7fca0c 100644
--- a/pkgs/development/python-modules/zipstream/default.nix
+++ b/pkgs/development/python-modules/zipstream/default.nix
@@ -1,17 +1,15 @@
-{ lib, buildPythonPackage, fetchurl, nose }:
+{ lib, buildPythonPackage, fetchPypi, nose }:
 
-let
+buildPythonPackage rec {
   pname = "zipstream";
   version = "1.1.4";
-in buildPythonPackage rec {
-  name = "${pname}-${version}";
 
-  src = fetchurl {
-    url = "mirror://pypi/z/${pname}/${name}.tar.gz";
+  src = fetchPypi {
+    inherit pname version;
     sha256 = "01im5anqdyggmwkigqcjg0qw2a5bnn84h33mfaqjjd69a28lpwif";
   };
 
-  buildInputs = [ nose ];
+  checkInputs = [ nose ];
 
   meta = {
     description = "A zip archive generator";