depot/third_party/nixpkgs/pkgs/development/python-modules/apycula/default.nix

53 lines
909 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, setuptools-scm
, numpy
, pandas
, pillow
, crcmod
, openpyxl
}:
buildPythonPackage rec {
pname = "apycula";
version = "0.8.3";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit version;
pname = "Apycula";
hash = "sha256-QGBWNWAEe6KbfYIoW3FScEL7b4TTcK1YZQoNkfxDNMo=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
numpy
pandas
pillow
crcmod
openpyxl
];
# 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 ];
};
}