Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 34 lines 637 B view raw
1{ 2 buildPythonPackage, 3 cirq-core, 4 requests, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "cirq-pasqal"; 10 format = "setuptools"; 11 inherit (cirq-core) version src meta; 12 13 sourceRoot = "${src.name}/${pname}"; 14 15 postPatch = '' 16 substituteInPlace requirements.txt \ 17 --replace "requests~=2.18" "requests" 18 ''; 19 20 propagatedBuildInputs = [ 21 cirq-core 22 requests 23 ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 # cirq's importlib hook doesn't work here 28 #pythonImportsCheck = [ "cirq_pasqal" ]; 29 30 disabledTestPaths = [ 31 # No need to test the version number 32 "cirq_pasqal/_version_test.py" 33 ]; 34}