depot/third_party/nixpkgs/pkgs/development/python-modules/pyicloud/default.nix

55 lines
991 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, requests
, keyring
, keyrings-alt
, click
, six
, tzlocal
, certifi
, bitstring
, unittest2
, future
}:
buildPythonPackage rec {
pname = "pyicloud";
version = "0.9.7";
src = fetchPypi {
inherit pname version;
sha256 = "dcebb32e474bc28aa77b944a0a64949ef3b5b852cbef6256fbc95347a04e777c";
};
propagatedBuildInputs = [
requests
keyring
keyrings-alt
click
six
tzlocal
certifi
bitstring
future
];
checkInputs = [ unittest2 ];
postPatch = ''
sed -i \
-e 's!click>=.*!click!' \
-e 's!keyring>=.*!keyring!' \
-e 's!keyrings.alt>=.*!keyrings.alt!' \
-e 's!tzlocal==.*!tzlocal!' \
requirements.txt
'';
meta = with lib; {
description = "PyiCloud is a module which allows pythonistas to interact with iCloud webservices";
homepage = "https://github.com/picklepete/pyicloud";
license = licenses.mit;
maintainers = [ maintainers.mic92 ];
};
}