nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchFromGitHub,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "doq";
9 version = "0.10.0";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "heavenshell";
14 repo = "py-doq";
15 tag = version;
16 hash = "sha256-iVu+5o8pZ5OhIzNItWbzUzqC3VQ6HCD7nP5gW/PVAMM=";
17 };
18
19 nativeBuildInputs = with python3.pkgs; [
20 setuptools
21 setuptools-generate
22 ];
23
24 propagatedBuildInputs = with python3.pkgs; [
25 jinja2
26 parso
27 toml
28 ];
29
30 nativeCheckInputs = with python3.pkgs; [
31 parameterized
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "doq" ];
36
37 meta = {
38 description = "Docstring generator for Python";
39 homepage = "https://github.com/heavenshell/py-doq";
40 changelog = "https://github.com/heavenshell/py-doq/releases/tag/${version}";
41 license = lib.licenses.bsd3;
42 maintainers = with lib.maintainers; [ natsukium ];
43 mainProgram = "doq";
44 };
45}