nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

apio: 0.8.1 -> 0.9.5

https://github.com/FPGAwars/apio/releases/tag/v0.9.5

Also:
- Enable `strictDeps`
- Disable failing test
- Use `pyproject = true` instead of `format = "pyproject"`
- Use `--replace-fail` instead of `--replace`
- Minor improvements

Luflosi a52dfe81 0a548fc6

+17 -9
+17 -9
pkgs/development/embedded/fpga/apio/default.nix
··· 16 16 17 17 buildPythonApplication rec { 18 18 pname = "apio"; 19 - version = "0.8.1"; 20 - format = "pyproject"; 19 + version = "0.9.5"; 20 + 21 + pyproject = true; 21 22 22 23 src = fetchFromGitHub { 23 24 owner = "FPGAwars"; 24 25 repo = "apio"; 25 26 rev = "v${version}"; 26 - sha256 = "sha256-04qAGTzusMT3GsaRxDoXNJK1Mslzxu+ugQclBJx8xzE="; 27 + hash = "sha256-VU4tOszGkw20DWW2SerFsnjFiSkrSwqBcwosGnHJfU8="; 27 28 }; 28 29 29 30 postPatch = '' 30 31 substituteInPlace pyproject.toml \ 31 - --replace 'scons==4.2.0' 'scons' \ 32 - --replace '==' '>=' 32 + --replace-fail 'scons==4.2.0' 'scons' \ 33 + --replace-fail '==' '>=' 33 34 34 - substituteInPlace apio/managers/scons.py --replace \ 35 + substituteInPlace apio/managers/scons.py --replace-fail \ 35 36 'return "tinyprog --libusb --program"' \ 36 37 'return "${tinyprog}/bin/tinyprog --libusb --program"' 37 - substituteInPlace apio/util.py --replace \ 38 - '_command = join(get_bin_dir(), "tinyprog")' \ 38 + substituteInPlace apio/util.py --replace-fail \ 39 + '_command = apio_bin_dir / "tinyprog"' \ 39 40 '_command = "${tinyprog}/bin/tinyprog"' 40 41 41 42 # semantic-version seems to not support version numbers like the one of tinyprog in Nixpkgs (1.0.24.dev114+gxxxxxxx). ··· 44 43 # This leads to an error like "Error: Invalid version string: '1.0.24.dev114+g97f6353'" 45 44 # when executing "apio upload" for a TinyFPGA. 46 45 # Replace the dot with a dash to work around this problem. 47 - substituteInPlace apio/managers/scons.py --replace \ 46 + substituteInPlace apio/managers/scons.py --replace-fail \ 48 47 'version = semantic_version.Version(pkg_version)' \ 49 48 'version = semantic_version.Version(pkg_version.replace(".dev", "-dev"))' 50 49 ''; ··· 70 69 pytestCheckHook 71 70 ]; 72 71 72 + disabledTestPaths = [ 73 + # This test fails and is also not executed in upstream's CI 74 + "test2" 75 + ]; 76 + 73 77 pytestFlagsArray = [ "--offline" ]; 78 + 79 + strictDeps = true; 74 80 75 81 meta = with lib; { 76 82 description = "Open source ecosystem for open FPGA boards";