Files
nixpkgs/pkgs/by-name/pi/pinnwand/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.2 KiB
Nix

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