mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01: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`.
20 lines
470 B
Nix
20 lines
470 B
Nix
{ stdenv, buildPythonPackage, fetchPypi }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yapf";
|
|
version = "0.22.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a98a6eacca64d2b920558f4a2f78150db9474de821227e60deaa29f186121c63";
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A formatter for Python code.";
|
|
homepage = "https://github.com/google/yapf";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ siddharthist ];
|
|
};
|
|
|
|
}
|