uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
60
pkgs/development/python-modules/pyicloud/default.nix
Normal file
60
pkgs/development/python-modules/pyicloud/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ 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
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue