mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
python312Packages.amaranth-boards: 0-unstable-2024-05-01 -> 0-unstable-2024-10-18
This commit is contained in:
parent
50c9e0ee17
commit
6b1750e429
@ -3,38 +3,36 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
amaranth,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
pdm-backend,
|
||||
unstableGitUpdater,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "amaranth-boards";
|
||||
version = "0-unstable-2024-05-01";
|
||||
version = "0-unstable-2024-10-18";
|
||||
pyproject = true;
|
||||
# python setup.py --version
|
||||
realVersion = "0.1.dev202+g${lib.substring 0 7 src.rev}";
|
||||
# from `pdm show`
|
||||
realVersion =
|
||||
let
|
||||
tag = builtins.elemAt (lib.splitString "-" version) 0;
|
||||
rev = lib.substring 0 7 src.rev;
|
||||
in
|
||||
"${tag}1.dev1+g${rev}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "amaranth-lang";
|
||||
repo = "amaranth-boards";
|
||||
rev = "aba2300dc83216523e1c98fdb22471cb4bac5027";
|
||||
rev = "23c66d68045831de0a372c8c237274d74c71ef4e";
|
||||
# these files change depending on git branch status
|
||||
postFetch = "rm -f $out/.git_archival.txt $out/.gitattributes";
|
||||
hash = "sha256-jldXyMJtuSGcZKmtwpZBYrR/UBe4ufblPYRYpBmReM8=";
|
||||
hash = "sha256-cC7uvj9+6h3RPbFdu3/T1t/jhw5CuLOF8aKwDSkRE54=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
dependencies = [
|
||||
setuptools
|
||||
amaranth
|
||||
];
|
||||
build-system = [ pdm-backend ];
|
||||
dependencies = [ amaranth ];
|
||||
|
||||
preBuild = ''
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
|
||||
export PDM_BUILD_SCM_VERSION="${realVersion}"
|
||||
'';
|
||||
|
||||
# no tests
|
||||
|
Loading…
Reference in New Issue
Block a user