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
94
pkgs/development/python-modules/qcs-api-client/default.nix
Normal file
94
pkgs/development/python-modules/qcs-api-client/default.nix
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
{ lib
|
||||
, attrs
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, httpx
|
||||
, iso8601
|
||||
, poetry-core
|
||||
, pydantic
|
||||
, pyjwt
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, python-dateutil
|
||||
, pythonOlder
|
||||
, respx
|
||||
, retrying
|
||||
, rfc3339
|
||||
, toml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qcs-api-client";
|
||||
version = "0.20.17";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rigetti";
|
||||
repo = "qcs-api-client-python";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-5YGMBoykMtXZgdHubQJKwRqntDPnR6/qsWJc1cYk8CA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
httpx
|
||||
iso8601
|
||||
pydantic
|
||||
pyjwt
|
||||
python-dateutil
|
||||
retrying
|
||||
rfc3339
|
||||
toml
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
respx
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Switch to poetry-core, https://github.com/rigetti/qcs-api-client-python/pull/2
|
||||
(fetchpatch {
|
||||
name = "switch-to-poetry-core.patch";
|
||||
url = "https://github.com/rigetti/qcs-api-client-python/commit/32f0b3c7070a65f4edf5b2552648d88435469e44.patch";
|
||||
sha256 = "sha256-mOc+Q/5cmwPziojtxeEMWWHSDvqvzZlNRbPtOSeTinQ=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'attrs = "^20.1.0"' 'attrs = "*"' \
|
||||
--replace 'httpx = "^0.15.0"' 'httpx = "*"' \
|
||||
--replace 'iso8601 = "^0.1.13"' 'iso8601 = "*"' \
|
||||
--replace 'pydantic = "^1.7.2"' 'pydantic = "*"' \
|
||||
--replace 'pyjwt = "^1.7.1"' 'pyjwt = "*"'
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
# Test is outdated
|
||||
"tests/test_client/test_additional_properties.py"
|
||||
"tests/test_client/test_auth.py"
|
||||
"tests/test_client/test_client.py"
|
||||
"tests/test_client/test_datetime.py"
|
||||
"tests/test_imports.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"qcs_api_client"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for accessing the Rigetti QCS API";
|
||||
homepage = "https://qcs-api-client-python.readthedocs.io/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue