git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.wcwidth: improve expression

use fetchPypi, pname, and correct indentation

commit8de375bf7ba8faf9d7051366aa761eb8897a643b authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de> dateSat 2 Feb 2019, 16:13 (8 years ago) parent0cb74f6
1 file changed+21−21
pkgs/development/python-modules/wcwidth/default.nix+21−21
pkgs/development/python-modules/wcwidth/default.nix+21−21
@@ -1,26 +1,26 @@
1−{ stdenv, fetchurl, buildPythonPackage }:
1+{ lib, fetchPypi, buildPythonPackage }:
22
33buildPythonPackage rec {
4− name = "wcwidth-${version}";
5− version = "0.1.7";
4+ pname = "wcwidth";
5+ version = "0.1.7";
66
7− src = fetchurl {
8− url = "mirror://pypi/w/wcwidth/${name}.tar.gz";
9− sha256 = "0pn6dflzm609m4r3i8ik5ni9ijjbb5fa3vg1n7hn6vkd49r77wrx";
10− };
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "0pn6dflzm609m4r3i8ik5ni9ijjbb5fa3vg1n7hn6vkd49r77wrx";
10+ };
1111
12− # Checks fail due to missing tox.ini file:
13− doCheck = false;
12+ # Checks fail due to missing tox.ini file:
13+ doCheck = false;
1414
15− meta = with stdenv.lib; {
16− description = "Measures number of Terminal column cells of wide-character codes";
17− longDescription = ''
18− This API is mainly for Terminal Emulator implementors -- any Python
19− program that attempts to determine the printable width of a string on
20− a Terminal. It is implemented in python (no C library calls) and has
21− no 3rd-party dependencies.
22− '';
23− homepage = https://github.com/jquast/wcwidth;
24− license = licenses.mit;
25− };
26− }
15+ meta = with lib; {
16+ description = "Measures number of Terminal column cells of wide-character codes";
17+ longDescription = ''
18+ This API is mainly for Terminal Emulator implementors -- any Python
19+ program that attempts to determine the printable width of a string on
20+ a Terminal. It is implemented in python (no C library calls) and has
21+ no 3rd-party dependencies.
22+ '';
23+ homepage = https://github.com/jquast/wcwidth;
24+ license = licenses.mit;
25+ };
26+}