nixpkgs/pkgs/servers/pinnwand/default.nix

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

67 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, python3
, fetchFromGitHub
, fetchpatch2
, nixosTests
}:
with python3.pkgs; buildPythonApplication rec {
2020-05-27 00:12:59 +00:00
pname = "pinnwand";
version = "1.5.0";
pyproject = true;
2020-05-27 00:12:59 +00:00
src = fetchFromGitHub {
owner = "supakeen";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-1Q/jRjFUoJb1S3cGF8aVuguWMJwYrAtXdKpZV8nRK0k=";
2020-05-27 00:12:59 +00:00
};
patches = [
(fetchpatch2 {
# fix entrypoint
url = "https://github.com/supakeen/pinnwand/commit/7868b4b4dcd57066dd0023b5a3cbe91fc5a0a858.patch";
hash = "sha256-Fln9yJNRvNPHZ0JIgzmwwjUpAHMu55NaEb8ZVDWhLyE=";
})
];
nativeBuildInputs = [
pdm-pep517
];
pythonRelaxDeps = [
"docutils"
"sqlalchemy"
];
2020-05-27 00:12:59 +00:00
propagatedBuildInputs = [
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 = [
pytestCheckHook
];
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";
2020-05-27 00:12:59 +00:00
};
}