nixpkgs/pkgs/development/python-modules/pep257/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

24 lines
624 B
Nix

{ stdenv, buildPythonPackage, fetchurl, pytest, mock }:
buildPythonPackage rec {
pname = "pep257";
version = "0.7.0";
src = fetchurl {
url = "https://github.com/GreenSteam/pep257/archive/${version}.tar.gz";
sha256 = "1ldpgil0kaf6wz5gvl9xdx35a62vc6bmgi3wbh9320dj5v2qk4wh";
};
buildInputs = [ pytest mock ];
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
homepage = https://github.com/GreenSteam/pep257/;
description = "Python docstring style checker";
longDescription = "Static analysis tool for checking compliance with Python PEP 257.";
license = licenses.mit;
};
}