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

61 lines
1.0 KiB
Nix
Raw Normal View History

2020-01-10 23:27:37 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, certifi
, click
2020-01-10 23:27:37 +00:00
, keyring
, keyrings-alt
, pytz
, requests
2020-01-10 23:27:37 +00:00
, six
, tzlocal
, pytest-mock
, pytestCheckHook
2020-02-27 07:48:28 +00:00
, future
2020-01-10 23:27:37 +00:00
}:
buildPythonPackage rec {
pname = "pyicloud";
version = "0.10.2";
2020-01-10 23:27:37 +00:00
src = fetchFromGitHub {
owner = "picklepete";
repo = pname;
rev = version;
sha256 = "0bxbhvimwbj2jm8dg7sil8yvln17xgjhvpwr4m783vwfcf76kdmy";
2020-01-10 23:27:37 +00:00
};
propagatedBuildInputs = [
certifi
click
future
2020-01-10 23:27:37 +00:00
keyring
keyrings-alt
pytz
requests
2020-01-10 23:27:37 +00:00
six
tzlocal
];
checkInputs = [
pytest-mock
pytestCheckHook
];
2020-01-10 23:27:37 +00:00
postPatch = ''
sed -i \
2020-05-30 23:39:29 +00:00
-e 's!click>=.*!click!' \
-e 's!keyring>=.*!keyring!' \
-e 's!keyrings.alt>=.*!keyrings.alt!' \
-e 's!tzlocal==.*!tzlocal!' \
2020-01-10 23:27:37 +00:00
requirements.txt
'';
meta = with lib; {
description = "PyiCloud is a module which allows pythonistas to interact with iCloud webservices";
homepage = "https://github.com/picklepete/pyicloud";
2020-01-10 23:27:37 +00:00
license = licenses.mit;
maintainers = [ maintainers.mic92 ];
};
}