mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
39 lines
752 B
Nix
39 lines
752 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
isPy27,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
setuptools,
|
|
importlib-metadata,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "exdown";
|
|
version = "0.9.0";
|
|
format = "pyproject";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-r0SCigkUpOiba4MDf80+dLjOjjruVNILh/raWfvjXA0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "exdown" ];
|
|
|
|
meta = with lib; {
|
|
description = "Extract code blocks from markdown";
|
|
homepage = "https://github.com/nschloe/exdown";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|