nixpkgs/pkgs/development/python-modules/yamllint/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
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`.
2018-06-23 18:14:26 +02:00

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 ];
};
}