forked from mirrors/nixpkgs
47 lines
799 B
Nix
47 lines
799 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
, numpy
|
|
, pandas
|
|
, pillow
|
|
, crcmod
|
|
, openpyxl
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apycula";
|
|
version = "0.0.1a9";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "Apycula";
|
|
sha256 = "01shkaxakisgg253jdwjkd81vnjgfws3gi2wyrdxmkcg95wphk5y";
|
|
};
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ newam ];
|
|
};
|
|
}
|