biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / pinnwand / default.nix
blobfac861d56b02ae40b8f442866aaec121af1f17e5
1 { lib
2 , python3
3 , fetchFromGitHub
4 , nixosTests
5 }:
7 with python3.pkgs; buildPythonApplication rec {
8   pname = "pinnwand";
9   version = "1.4.0";
10   format = "pyproject";
12   src = fetchFromGitHub {
13     owner = "supakeen";
14     repo = pname;
15     rev = "refs/tags/v${version}";
16     hash = "sha256-zJH2ojLQChElRvU2TWg4lW+Mey+wP0XbLJhVF16nvss=";
17   };
19   nativeBuildInputs = [
20     poetry-core
21     pythonRelaxDepsHook
22   ];
24   pythonRelaxDeps = [
25     "docutils"
26     "sqlalchemy"
27   ];
29   propagatedBuildInputs = [
30     click
31     docutils
32     pygments
33     pygments-better-html
34     sqlalchemy
35     token-bucket
36     tomli
37     tornado
38   ];
40   nativeCheckInputs = [
41     pytestCheckHook
42   ];
44   __darwinAllowLocalNetworking = true;
46   passthru.tests = nixosTests.pinnwand;
48   meta = with lib; {
49     changelog = "https://github.com/supakeen/pinnwand/releases/tag/v${version}";
50     description = "A Python pastebin that tries to keep it simple";
51     homepage = "https://supakeen.com/project/pinnwand/";
52     license = licenses.mit;
53     maintainers = with maintainers; [ hexa ];
54     mainProgram = "pinnwand";
55   };