about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-pep257.nix
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-05-27 11:25:35 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-05-27 11:30:21 +0200
commit959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c (patch)
tree60c0df9d9c5e876fe757c28bf11bd18762ce4180 /pkgs/development/python-modules/pytest-pep257.nix
parentdce1c26e5d4bd25d21e1abc3397e02d6def044a8 (diff)
downloadnixlib-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.tar
nixlib-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.tar.gz
nixlib-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.tar.bz2
nixlib-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.tar.lz
nixlib-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.tar.xz
nixlib-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.tar.zst
nixlib-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.zip
Python: add pname attributes to libraries
so that we can use the update script.
Diffstat (limited to 'pkgs/development/python-modules/pytest-pep257.nix')
-rw-r--r--pkgs/development/python-modules/pytest-pep257.nix28
1 files changed, 15 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/pytest-pep257.nix b/pkgs/development/python-modules/pytest-pep257.nix
index 7ce63ebc7a6d..1509d80feb1a 100644
--- a/pkgs/development/python-modules/pytest-pep257.nix
+++ b/pkgs/development/python-modules/pytest-pep257.nix
@@ -1,19 +1,21 @@
 { stdenv, buildPythonPackage, fetchurl, pytest, pep257 }:
+
 buildPythonPackage rec {
-   name = "pytest-pep257-${version}";
-   version = "0.0.5";
+  pname = "pytest-pep257";
+  name = "${pname}-${version}";
+  version = "0.0.5";
 
-   src = fetchurl {
-     url = "mirror://pypi/p/pytest-pep257/${name}.tar.gz";
-     sha256 = "082v3d5k4331x53za51kl8zxsndsw1pcyf1xdfpb2gjdjrhixb8w";
-   };
+  src = fetchurl {
+    url = "mirror://pypi/p/pytest-pep257/${name}.tar.gz";
+    sha256 = "082v3d5k4331x53za51kl8zxsndsw1pcyf1xdfpb2gjdjrhixb8w";
+  };
 
-   buildInputs = [ pytest ];
-   propagatedBuildInputs = [ pep257 ];
+  buildInputs = [ pytest ];
+  propagatedBuildInputs = [ pep257 ];
 
-   meta = with stdenv.lib; {
-     homepage = https://github.com/anderslime/pytest-pep257;
-     description = "py.test plugin for PEP257";
-     license = licenses.mit;
-   };
+  meta = with stdenv.lib; {
+    homepage = https://github.com/anderslime/pytest-pep257;
+    description = "py.test plugin for PEP257";
+    license = licenses.mit;
+  };
 }