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
66
pkgs/development/python-modules/flickrapi/default.nix
Normal file
66
pkgs/development/python-modules/flickrapi/default.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, requests
|
||||
, requests-toolbelt
|
||||
, requests-oauthlib
|
||||
, pytestCheckHook
|
||||
, responses
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flickrapi";
|
||||
version = "2.4";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sybrenstuvel";
|
||||
repo = pname;
|
||||
rev = "version-${version}";
|
||||
hash = "sha256-vRZrlXKI0UDdmDevh3XUngH4X8G3VlOCSP0z/rxhIgw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
requests-toolbelt
|
||||
requests-oauthlib
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d);
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# Tests require network access
|
||||
"test_default_format"
|
||||
"test_etree_default_format"
|
||||
"test_etree_format_error"
|
||||
"test_etree_format_happy"
|
||||
"test_explicit_format"
|
||||
"test_json_callback_format"
|
||||
"test_json_format"
|
||||
"test_parsed_json_format"
|
||||
"test_walk"
|
||||
"test_xmlnode_format"
|
||||
"test_xmlnode_format_error"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"flickrapi"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python interface to the Flickr API";
|
||||
homepage = "https://stuvel.eu/flickrapi";
|
||||
license = licenses.psfl;
|
||||
maintainers = with maintainers; [ obadz ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue