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
101
pkgs/development/python-modules/pyquil/default.nix
Normal file
101
pkgs/development/python-modules/pyquil/default.nix
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, importlib-metadata
|
||||
, ipython
|
||||
, lark
|
||||
, networkx
|
||||
, numpy
|
||||
, poetry-core
|
||||
, pytest-asyncio
|
||||
, pytest-freezegun
|
||||
, pytest-httpx
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, qcs-api-client
|
||||
, retry
|
||||
, respx
|
||||
, rpcq
|
||||
, scipy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyquil";
|
||||
version = "3.1.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rigetti";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-ejfzxCf2NucK/hfzswHu3h4DPPZQY8vkMAQ51XDRWKU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
lark
|
||||
networkx
|
||||
numpy
|
||||
qcs-api-client
|
||||
retry
|
||||
rpcq
|
||||
scipy
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytest-freezegun
|
||||
pytest-httpx
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
respx
|
||||
ipython
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'lark = "^0.11.1"' 'lark = "*"'
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests require network access
|
||||
"test/e2e/"
|
||||
"test/unit/test_api.py"
|
||||
"test/unit/test_engagement_manager.py"
|
||||
"test/unit/test_operator_estimation.py"
|
||||
"test/unit/test_wavefunction_simulator.py"
|
||||
"test/unit/test_compatibility_v2_operator_estimation.py"
|
||||
"test/unit/test_compatibility_v2_quantum_computer.py"
|
||||
"test/unit/test_compatibility_v2_qvm.py"
|
||||
"test/unit/test_quantum_computer.py"
|
||||
"test/unit/test_qvm.py"
|
||||
"test/unit/test_reference_wavefunction.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
"test_compile_with_quilt_calibrations"
|
||||
"test_sets_timeout_on_requests"
|
||||
# sensitive to lark parser output
|
||||
"test_memory_commands"
|
||||
"test_classical"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyquil"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for creating Quantum Instruction Language (Quil) programs";
|
||||
homepage = "https://github.com/rigetti/pyquil";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue