mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 14:47:06 +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`.
31 lines
649 B
Nix
31 lines
649 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, sphinx
|
|
, CommonMark_54
|
|
, docutils
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "recommonmark";
|
|
version = "0.4.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6e29c723abcf5533842376d87c4589e62923ecb6002a8e059eb608345ddaff9d";
|
|
};
|
|
|
|
checkInputs = [ pytest sphinx ];
|
|
propagatedBuildInputs = [ CommonMark_54 docutils ];
|
|
|
|
# No tests in archive
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "A docutils-compatibility bridge to CommonMark";
|
|
homepage = https://github.com/rtfd/recommonmark;
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
};
|
|
} |