nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7 build,
8 hatchling,
9 tomli,
10}:
11
12buildPythonPackage rec {
13 pname = "hatch-fancy-pypi-readme";
14 version = "25.1.0";
15 pyproject = true;
16
17 src = fetchPypi {
18 pname = "hatch_fancy_pypi_readme";
19 inherit version;
20 hash = "sha256-nFjtPf+Q1R9DQUzjcAmtHVsPCP/J/CFpmKBjgPAcAEU=";
21 };
22
23 nativeBuildInputs = [ hatchling ];
24
25 propagatedBuildInputs = [
26 hatchling
27 ]
28 ++ lib.optionals (pythonOlder "3.11") [ tomli ];
29
30 nativeCheckInputs = [
31 build
32 pytestCheckHook
33 ];
34
35 # Requires network connection
36 disabledTests = [
37 "test_build" # Requires internet
38 "test_invalid_config"
39 ];
40
41 pythonImportsCheck = [ "hatch_fancy_pypi_readme" ];
42
43 meta = {
44 description = "Fancy PyPI READMEs with Hatch";
45 mainProgram = "hatch-fancy-pypi-readme";
46 homepage = "https://github.com/hynek/hatch-fancy-pypi-readme";
47 license = lib.licenses.mit;
48 };
49}