Merge pull request #120336 from dotlambda/radicale-pytestCheckHook
radicale: use pytestCheckHook
This commit is contained in:
commit
de2d41e133
@ -1,14 +1,20 @@
|
|||||||
{ lib, python3 }:
|
{ lib, python3, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "Radicale";
|
pname = "radicale";
|
||||||
version = "3.0.6";
|
version = "3.0.6";
|
||||||
|
|
||||||
src = python3.pkgs.fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "Kozea";
|
||||||
sha256 = "a9433d3df97135d9c02cec8dde4199444daf1b73ad161ded398d67b8e629fdc6";
|
repo = "Radicale";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1xlsvrmx6jhi71j6j8z9sli5vwxasivzjyqf8zq8r0l5p7350clf";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i '/addopts/d' setup.cfg
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
defusedxml
|
defusedxml
|
||||||
passlib
|
passlib
|
||||||
@ -18,14 +24,14 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = with python3.pkgs; [
|
checkInputs = with python3.pkgs; [
|
||||||
pytestrunner
|
pytestCheckHook
|
||||||
pytest
|
|
||||||
pytestcov
|
|
||||||
pytest-flake8
|
|
||||||
pytest-isort
|
|
||||||
waitress
|
waitress
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
inherit (nixosTests) radicale;
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://www.radicale.org/3.0.html";
|
homepage = "https://www.radicale.org/3.0.html";
|
||||||
description = "CalDAV and CardDAV server";
|
description = "CalDAV and CardDAV server";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user