mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +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`.
25 lines
422 B
Nix
25 lines
422 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "parso";
|
|
version = "0.2.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "f0604a40b96e062b0fd99cf134cc2d5cdf66939d0902f8267d938b0d5b26707f";
|
|
};
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
meta = {
|
|
description = "A Python Parser";
|
|
homepage = https://github.com/davidhalter/parso;
|
|
license = lib.licenses.mit;
|
|
};
|
|
|
|
}
|