nixpkgs/pkgs/development/python-modules/apycula/default.nix
2024-12-01 06:46:55 +00:00

40 lines
791 B
Nix

{
lib,
buildPythonPackage,
crc,
fetchPypi,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "apycula";
version = "0.15";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit version;
pname = "Apycula";
hash = "sha256-Bg5nHvUaW+cHZEzmZ08YuXwecVx6R8tys8ZBuqUEhTg=";
};
build-system = [ setuptools-scm ];
dependencies = [ crc ];
# Tests require a physical FPGA
doCheck = false;
pythonImportsCheck = [ "apycula" ];
meta = with lib; {
description = "Open Source tools for Gowin FPGAs";
homepage = "https://github.com/YosysHQ/apicula";
changelog = "https://github.com/YosysHQ/apicula/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ newam ];
};
}