forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / servers / pinnwand / default.nix
blob1b7ac24eadfbb0f8de3be3f73e25ac79637ac01c
1 { lib
2 , python3
3 , fetchFromGitHub
4 , nixosTests
5 }:
7 with python3.pkgs; buildPythonApplication rec {
8   pname = "pinnwand";
9   version = "1.6.0";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "supakeen";
14     repo = pname;
15     rev = "refs/tags/v${version}";
16     hash = "sha256-oB7Dd1iVzGqr+5nG7BfZuwOQUgUnmg6ptQDZPGH7P5E=";
17   };
19   build-system = [ pdm-pep517 ];
21   dependencies = [
22     click
23     docutils
24     pygments
25     pygments-better-html
26     python-dotenv
27     sqlalchemy
28     token-bucket
29     tomli
30     tornado
31   ];
33   nativeCheckInputs = [
34     gitpython
35     pytest-asyncio
36     pytest-cov-stub
37     pytest-html
38     pytest-playwright
39     pytestCheckHook
40     toml
41     urllib3
42   ];
44   disabledTestPaths = [
45     # out-of-date browser tests
46     "test/e2e"
47   ];
49   __darwinAllowLocalNetworking = true;
51   passthru.tests = nixosTests.pinnwand;
53   meta = with lib; {
54     changelog = "https://github.com/supakeen/pinnwand/releases/tag/v${version}";
55     description = "Python pastebin that tries to keep it simple";
56     homepage = "https://github.com/supakeen/pinnwand";
57     license = licenses.mit;
58     maintainers = with maintainers; [ hexa ];
59     mainProgram = "pinnwand";
60     platforms = platforms.linux;
61   };