mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +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`.
32 lines
613 B
Nix
32 lines
613 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pbr
|
|
, docutils
|
|
, six
|
|
, chardet
|
|
, stevedore
|
|
, restructuredtext_lint
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "doc8";
|
|
version = "0.8.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "2df89f9c1a5abfb98ab55d0175fed633cae0cf45025b8b1e0ee5ea772be28543";
|
|
};
|
|
|
|
buildInputs = [ pbr ];
|
|
propagatedBuildInputs = [ docutils six chardet stevedore restructuredtext_lint ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Style checker for Sphinx (or other) RST documentation";
|
|
homepage = "https://launchpad.net/doc8";
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|