mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
python312Packages.luna-soc: init at 0.2.0
This commit is contained in:
parent
393495aa44
commit
ded0edc6d9
53
pkgs/development/python-modules/luna-soc/default.nix
Normal file
53
pkgs/development/python-modules/luna-soc/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
luna-usb,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "luna-soc";
|
||||
version = "0.2.0";
|
||||
pyproject = true;
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "greatscottgadgets";
|
||||
repo = "luna-soc";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-P8P32hM1cVXENcDpCrmPe8BvkMCWdeEgHwbIU94uLe8=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail '"setuptools-git-versioning<2"' "" \
|
||||
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [ luna-usb ];
|
||||
|
||||
# has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"luna_soc"
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/greatscottgadgets/luna-soc/releases/tag/${version}";
|
||||
description = "Amaranth HDL library for building USB-capable SoC designs";
|
||||
homepage = "https://github.com/greatscottgadgets/luna-soc";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ carlossless ];
|
||||
};
|
||||
}
|
@ -7610,6 +7610,8 @@ self: super: with self; {
|
||||
|
||||
lunarcalendar = callPackage ../development/python-modules/lunarcalendar { };
|
||||
|
||||
luna-soc = callPackage ../development/python-modules/luna-soc { };
|
||||
|
||||
luna-usb = callPackage ../development/python-modules/luna-usb { };
|
||||
|
||||
luqum = callPackage ../development/python-modules/luqum { };
|
||||
|
Loading…
Reference in New Issue
Block a user