mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +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`.
27 lines
607 B
Nix
27 lines
607 B
Nix
{ stdenv, buildPythonPackage, fetchPypi
|
|
, nose, pyyaml, pathspec }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yamllint";
|
|
version = "1.9.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "75295a7cbfb3529e02551d4e95c2e3eb85d66292bedcfb463d25d71308065e34";
|
|
};
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
propagatedBuildInputs = [ pyyaml pathspec ];
|
|
|
|
# Two test failures
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A linter for YAML files";
|
|
homepage = https://github.com/adrienverge/yamllint;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ mikefaille ];
|
|
};
|
|
}
|