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
63
pkgs/development/python-modules/spyse-python/default.nix
Normal file
63
pkgs/development/python-modules/spyse-python/default.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, dataclasses-json
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, limiter
|
||||
, pythonOlder
|
||||
, requests
|
||||
, responses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spyse-python";
|
||||
version = "2.2.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "spyse-com";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "041k0037anwaxp2mh7mdk8rdsw9hdr3arigyyqfxfn35x8j41c3k";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
dataclasses-json
|
||||
responses
|
||||
limiter
|
||||
];
|
||||
|
||||
# Tests requires an API token
|
||||
doCheck = false;
|
||||
|
||||
patches = [
|
||||
# Update limiter import and rate limit, https://github.com/spyse-com/spyse-python/pull/11
|
||||
(fetchpatch {
|
||||
name = "support-later-limiter.patch";
|
||||
url = "https://github.com/spyse-com/spyse-python/commit/ff68164c514dfb28ab77d8690b3a5153962dbe8c.patch";
|
||||
sha256 = "sha256-PoWPJCK/Scsh4P7lr97u4JpVHXNlY0C9rJgY4TDYmv0=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'dataclasses~=0.6'," "" \
|
||||
--replace "responses~=0.13.3" "responses>=0.13.3" \
|
||||
--replace "limiter~=0.1.2" "limiter>=0.1.2" \
|
||||
--replace "requests~=2.26.0" "requests>=2.26.0"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"spyse"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module for spyse.com API";
|
||||
homepage = "https://github.com/spyse-com/spyse-python";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue