1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00
nixpkgs/pkgs/servers/pinnwand/default.nix
Martin Weinelt a32f0741b5
pinnwand: relax docutils constraint
Checking runtime dependencies for pinnwand-1.4.0-py3-none-any.whl
  - docutils<0.20,>=0.19 not satisifeid by version 0.20.1
2023-12-20 20:10:29 +01:00

58 lines
1.1 KiB
Nix

{ lib
, python3
, fetchFromGitHub
, nixosTests
}:
with python3.pkgs; buildPythonApplication rec {
pname = "pinnwand";
version = "1.4.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "supakeen";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-zJH2ojLQChElRvU2TWg4lW+Mey+wP0XbLJhVF16nvss=";
};
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"docutils"
"sqlalchemy"
];
propagatedBuildInputs = [
click
docutils
pygments
pygments-better-html
sqlalchemy
token-bucket
tomli
tornado
];
nativeCheckInputs = [
pytestCheckHook
];
__darwinAllowLocalNetworking = true;
passthru.tests = nixosTests.pinnwand;
meta = with lib; {
changelog = "https://github.com/supakeen/pinnwand/releases/tag/v${version}";
description = "A Python pastebin that tries to keep it simple";
homepage = "https://supakeen.com/project/pinnwand/";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
mainProgram = "pinnwand";
};
}