nixpkgs/pkgs/development/python-modules/readme/default.nix
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

37 lines
735 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytest,
readme-renderer,
}:
buildPythonPackage rec {
pname = "readme";
version = "0.7.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "32fbe1538a437da160fa4e4477270bfdcd8876e2e364d0d12898302644496231";
};
nativeCheckInputs = [ pytest ];
propagatedBuildInputs = [ readme-renderer ];
checkPhase = ''
pytest
'';
# tests are not included with pypi release
# package is not readme-renderer
doCheck = false;
meta = {
description = "Readme is a library for rendering readme descriptions for Warehouse";
homepage = "https://github.com/pypa/readme";
license = lib.licenses.asl20;
maintainers = [ ];
};
}