mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
python3Packages.caldav: use github, fix build
This commit is contained in:
parent
8a67181b7c
commit
db59d205fe
|
@ -1,34 +1,51 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, tzlocal
|
, pythonOlder
|
||||||
, requests
|
, icalendar
|
||||||
, vobject
|
|
||||||
, lxml
|
, lxml
|
||||||
, nose
|
, nose
|
||||||
|
, pytz
|
||||||
|
, requests
|
||||||
|
, six
|
||||||
|
, tzlocal
|
||||||
|
, vobject
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "caldav";
|
pname = "caldav";
|
||||||
version = "0.7.0";
|
version = "0.7.0";
|
||||||
|
|
||||||
propagatedBuildInputs = [ tzlocal requests vobject lxml nose ];
|
src = fetchFromGitHub {
|
||||||
|
owner = "python-caldav";
|
||||||
src = fetchPypi {
|
repo = pname;
|
||||||
inherit pname version;
|
rev = "v${version}";
|
||||||
sha256 = "f5982b204fcfac8598381e35e46b667542bd728009971271463f81100e6e5943";
|
sha256 = "0m64maiqp3k8fsgkkvdx1dlfhkc70pqig4dclq6w8ajz82czrq83";
|
||||||
};
|
};
|
||||||
|
|
||||||
# xandikos is only a optional test dependency, not available for python3
|
propagatedBuildInputs = [ six requests vobject lxml ]
|
||||||
|
++ lib.optionals (pythonOlder "3.6") [ pytz tzlocal ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
icalendar
|
||||||
|
nose
|
||||||
|
tzlocal
|
||||||
|
];
|
||||||
|
|
||||||
|
# xandikos and radicale is only a optional test dependency, not available for python3
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace ", 'xandikos'" ""
|
--replace ", 'xandikos'" "" \
|
||||||
|
--replace ", 'radicale'" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "caldav" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "This project is a CalDAV (RFC4791) client library for Python.";
|
description = "This project is a CalDAV (RFC4791) client library for Python.";
|
||||||
homepage = "https://pythonhosted.org/caldav/";
|
homepage = "https://pythonhosted.org/caldav/";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ marenz ];
|
maintainers = with maintainers; [ marenz ];
|
||||||
|
#broken = true; # requires radicale which is not packaged yet
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue