mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:25:38 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
24 lines
561 B
Nix
24 lines
561 B
Nix
{ stdenv, fetchPypi, fetchpatch
|
|
, buildPythonPackage, python
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "parse";
|
|
version = "1.8.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "c3cdf6206f22aeebfa00e5b954fcfea13d1b2dc271c75806b6025b94fb490939";
|
|
};
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} test_parse.py
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/r1chardj0n3s/parse;
|
|
description = "parse() is the opposite of format()";
|
|
license = licenses.bsdOriginal;
|
|
maintainers = with maintainers; [ alunduil ];
|
|
};
|
|
}
|