nixpkgs/pkgs/servers/pinnwand/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

52 lines
990 B
Nix

{ lib
, python3
, fetchFromGitHub
, fetchpatch
, 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
];
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 ];
};
}