Files
2026-04-11 04:10:38 +00:00

47 lines
930 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# build-system
setuptools-scm,
# dependencies
fastcrc,
msgspec,
numpy,
}:
buildPythonPackage (finalAttrs: {
pname = "apycula";
version = "0.32";
pyproject = true;
# The Pypi archive contains necessary files generated with proprietary tools.
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-DWSVcIXkv6g6Zf+8SrZKQUrtOD5RKu01Xl/lo8Ov5n8=";
};
build-system = [ setuptools-scm ];
dependencies = [
fastcrc
msgspec
numpy
];
# Tests require a physical FPGA
doCheck = false;
pythonImportsCheck = [ "apycula" ];
meta = {
description = "Open Source tools for Gowin FPGAs";
homepage = "https://github.com/YosysHQ/apicula";
changelog = "https://github.com/YosysHQ/apicula/releases/tag/${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ newam ];
};
})