Files
nixpkgs/pkgs/development/python-modules/exdown/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
746 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 = {
description = "Extract code blocks from markdown";
homepage = "https://github.com/nschloe/exdown";
license = lib.licenses.mit;
maintainers = [ ];
};
}