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