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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.0 KiB
Nix
Raw Normal View History

2020-01-11 02:27:37 +03:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, certifi
, click
2020-01-11 02:27:37 +03:00
, keyring
, keyrings-alt
, pytz
, requests
2020-01-11 02:27:37 +03:00
, six
, tzlocal
, pytest-mock
, pytestCheckHook
2020-02-27 10:48:28 +03:00
, future
2020-01-11 02:27:37 +03:00
}:
buildPythonPackage rec {
pname = "pyicloud";
version = "1.0.0";
2020-01-11 02:27:37 +03:00
src = fetchFromGitHub {
owner = "picklepete";
repo = pname;
rev = version;
hash = "sha256-2E1pdHHt8o7CGpdG+u4xy5OyNCueUGVw5CY8oicYd5w=";
2020-01-11 02:27:37 +03:00
};
propagatedBuildInputs = [
certifi
click
future
2020-01-11 02:27:37 +03:00
keyring
keyrings-alt
pytz
requests
2020-01-11 02:27:37 +03:00
six
tzlocal
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
2020-01-11 02:27:37 +03:00
postPatch = ''
sed -i \
2020-05-31 02:39:29 +03:00
-e 's!click>=.*!click!' \
-e 's!keyring>=.*!keyring!' \
-e 's!keyrings.alt>=.*!keyrings.alt!' \
-e 's!tzlocal==.*!tzlocal!' \
2020-01-11 02:27:37 +03: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-11 02:27:37 +03:00
license = licenses.mit;
maintainers = [ maintainers.mic92 ];
};
}