mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
61 lines
1.0 KiB
Nix
61 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, certifi
|
|
, click
|
|
, keyring
|
|
, keyrings-alt
|
|
, pytz
|
|
, requests
|
|
, six
|
|
, tzlocal
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, future
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyicloud";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "picklepete";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-2E1pdHHt8o7CGpdG+u4xy5OyNCueUGVw5CY8oicYd5w=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
certifi
|
|
click
|
|
future
|
|
keyring
|
|
keyrings-alt
|
|
pytz
|
|
requests
|
|
six
|
|
tzlocal
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|