Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "docstring-parser";
11 version = "0.17.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "rr-";
16 repo = "docstring_parser";
17 tag = version;
18 hash = "sha256-hR+i1HU/ZpN6I3a8k/Wv2OrXgB4ls/A5OHZRqxEZS78=";
19 };
20
21 build-system = [ hatchling ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "docstring_parser" ];
26
27 meta = {
28 description = "Parse Python docstrings in various flavors";
29 homepage = "https://github.com/rr-/docstring_parser";
30 changelog = "https://github.com/rr-/docstring_parser/blob/${version}/CHANGELOG.md";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ SomeoneSerge ];
33 };
34}