summary refs log tree commit diff
path: root/pkgs/development/python-modules/jsbeautifier
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/jsbeautifier
parentdce1c26e5d4bd25d21e1abc3397e02d6def044a8 (diff)
downloadnixpkgs-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.tar
nixpkgs-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.tar.gz
nixpkgs-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.tar.bz2
nixpkgs-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.tar.lz
nixpkgs-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.tar.xz
nixpkgs-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.tar.zst
nixpkgs-959842a9c72ed6cc8566e23c1ce17e9ef0d8ec0c.zip
Python: add pname attributes to libraries
so that we can use the update script.
Diffstat (limited to 'pkgs/development/python-modules/jsbeautifier')
-rw-r--r--pkgs/development/python-modules/jsbeautifier/default.nix30
1 files changed, 16 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/jsbeautifier/default.nix b/pkgs/development/python-modules/jsbeautifier/default.nix
index fa4ba7bffb5..c199b2f50db 100644
--- a/pkgs/development/python-modules/jsbeautifier/default.nix
+++ b/pkgs/development/python-modules/jsbeautifier/default.nix
@@ -1,21 +1,23 @@
 { stdenv, fetchurl, buildPythonApplication, EditorConfig, pytest, six }:
 
 buildPythonApplication rec {
-    name = "jsbeautifier-1.6.14";
+  pname = "jsbeautifier";
+  version = "1.6.14";
+  name = "jsbeautifier-1.6.14";
 
-    propagatedBuildInputs = [ six ];
+  propagatedBuildInputs = [ six ];
 
-    buildInputs = [ EditorConfig pytest ];
+  buildInputs = [ EditorConfig pytest ];
 
-    src = fetchurl {
-      url = "mirror://pypi/j/jsbeautifier/${name}.tar.gz";
-      sha256 = "50b2af556aa1da7283a6a92eaa699668312cb91f2ba6b78a4422b1d42af964a2";
-    };
+  src = fetchurl {
+    url = "mirror://pypi/j/jsbeautifier/${name}.tar.gz";
+    sha256 = "50b2af556aa1da7283a6a92eaa699668312cb91f2ba6b78a4422b1d42af964a2";
+  };
 
-    meta = with stdenv.lib; {
-      homepage    = "http://jsbeautifier.org";
-      description = "JavaScript unobfuscator and beautifier.";
-      license     = licenses.mit;
-      maintainers = with maintainers; [ apeyroux ];
-    };
-  }
+  meta = with stdenv.lib; {
+    homepage    = "http://jsbeautifier.org";
+    description = "JavaScript unobfuscator and beautifier.";
+    license     = licenses.mit;
+    maintainers = with maintainers; [ apeyroux ];
+  };
+}