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`.
23 lines
560 B
Nix
23 lines
560 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, isPyPy, unittest2 }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyflakes";
|
|
version = "1.6.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "8d616a382f243dbf19b54743f280b80198be0bca3a5396f1d2e1fca6223e8805";
|
|
};
|
|
|
|
buildInputs = [ unittest2 ];
|
|
|
|
doCheck = !isPyPy;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://launchpad.net/pyflakes;
|
|
description = "A simple program which checks Python source files for errors";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ garbas ];
|
|
};
|
|
}
|