nixpkgs/pkgs/servers/pinnwand/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.2 KiB
Nix
Raw Permalink Normal View History

{ lib
, python3
, fetchFromGitHub
, nixosTests
}:
with python3.pkgs; buildPythonApplication rec {
2020-05-27 00:12:59 +00:00
pname = "pinnwand";
version = "1.6.0";
pyproject = true;
2020-05-27 00:12:59 +00:00
src = fetchFromGitHub {
owner = "supakeen";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-oB7Dd1iVzGqr+5nG7BfZuwOQUgUnmg6ptQDZPGH7P5E=";
2020-05-27 00:12:59 +00:00
};
build-system = [ pdm-pep517 ];
dependencies = [
2020-05-27 00:12:59 +00:00
click
docutils
pygments
2020-05-27 00:12:59 +00:00
pygments-better-html
python-dotenv
2020-05-27 00:12:59 +00:00
sqlalchemy
token-bucket
tomli
tornado
2020-05-27 00:12:59 +00:00
];
nativeCheckInputs = [
gitpython
pytest-asyncio
pytest-cov-stub
pytest-html
pytest-playwright
pytestCheckHook
toml
urllib3
];
disabledTestPaths = [
# out-of-date browser tests
"test/e2e"
];
2021-01-11 05:34:19 +00:00
__darwinAllowLocalNetworking = true;
2020-06-03 21:12:06 +00:00
passthru.tests = nixosTests.pinnwand;
2020-05-27 00:12:59 +00:00
meta = with lib; {
changelog = "https://github.com/supakeen/pinnwand/releases/tag/v${version}";
description = "Python pastebin that tries to keep it simple";
2024-06-16 23:04:36 +00:00
homepage = "https://github.com/supakeen/pinnwand";
2020-05-27 00:12:59 +00:00
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
2023-11-23 21:09:35 +00:00
mainProgram = "pinnwand";
platforms = platforms.linux;
2020-05-27 00:12:59 +00:00
};
}