Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
63 lines
1.2 KiB
Nix
63 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 = pname;
|
|
rev = "refs/tags/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;
|
|
};
|
|
}
|
|
|