11{
22 lib ,
3- stdenv ,
43 buildPythonPackage ,
5- pythonOlder ,
4+ pythonAtLeast ,
65 fetchFromGitHub ,
76 rustPlatform ,
87 numpy ,
98 pytestCheckHook ,
109 syrupy ,
11- libiconv ,
1210} :
1311
1412buildPythonPackage rec {
1513 pname = "quil" ;
16- version = "0.13.2 " ;
14+ version = "0.15.3 " ;
1715 pyproject = true ;
1816
19- disabled = pythonOlder "3.8" ;
17+ # error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)
18+ disabled = pythonAtLeast "3.13" ;
2019
2120 src = fetchFromGitHub {
2221 owner = "rigetti" ;
2322 repo = "quil-rs" ;
24- rev = "quil-py/v${ version } " ;
25- hash = "sha256-Hapj90F5IloyW7MyeTg95rlUfb4JiZdtz1HuJVxlk/c =" ;
23+ tag = "quil-py/v${ version } " ;
24+ hash = "sha256-55NfQlpeqp0je9MpTeQdVyhZ8C16lZJKM43PTsQY5nc =" ;
2625 } ;
2726
2827 cargoDeps = rustPlatform . fetchCargoVendor {
2928 inherit pname version src ;
30- hash = "sha256-yfO1/ChiFYTB/LWCc9CR3lBzU71FEos+jjkHVoJyoeI =" ;
29+ hash = "sha256-hMvbbJulJaR5Qy7LS4H9CyiAoQWoPMNxxVzmwD9aYTQ =" ;
3130 } ;
3231
3332 buildAndTestSubdir = "quil-py" ;
@@ -37,8 +36,6 @@ buildPythonPackage rec {
3736 rustPlatform . maturinBuildHook
3837 ] ;
3938
40- buildInputs = lib . optionals stdenv . hostPlatform . isDarwin [ libiconv ] ;
41-
4239 dependencies = [ numpy ] ;
4340
4441 pythonImportsCheck = [
@@ -53,13 +50,8 @@ buildPythonPackage rec {
5350 syrupy
5451 ] ;
5552
56- disabledTests = [
57- # Syrupy snapshot needs to be regenerated
58- "test_filter_instructions"
59- ] ;
60-
6153 meta = {
62- changelog = "https://github.com/rigetti/quil-rs/blob/${ src . rev } /quil-py/CHANGELOG.md" ;
54+ changelog = "https://github.com/rigetti/quil-rs/blob/quil-py/v ${ version } /quil-py/CHANGELOG.md" ;
6355 description = "Python package for building and parsing Quil programs" ;
6456 homepage = "https://github.com/rigetti/quil-rs/tree/main/quil-py" ;
6557 license = lib . licenses . asl20 ;
0 commit comments