kikit: 1.7.1 -> 1.7.2, python3Packages.pcbnewtransition: 0.5.0 -> 0.5.2: Fix kikit build (#395213)
This commit is contained in:
commit
5c4321c818
@ -26,7 +26,7 @@ let
|
|||||||
in
|
in
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "kikit";
|
pname = "kikit";
|
||||||
version = "1.7.1";
|
version = "1.7.2";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
@ -35,7 +35,13 @@ buildPythonApplication rec {
|
|||||||
owner = "yaqwsx";
|
owner = "yaqwsx";
|
||||||
repo = "KiKit";
|
repo = "KiKit";
|
||||||
tag = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-GG0OXPoTy219QefQ7GwMen4u66lPob5DI8lU9sqwaRQ=";
|
hash = "sha256-HSAQJJqJMVh44wgOQm+0gteShLogklBFuIzWtoVTf9I=";
|
||||||
|
# Upstream uses versioneer, which relies on gitattributes substitution.
|
||||||
|
# This leads to non-reproducible archives on GitHub.
|
||||||
|
# See https://github.com/NixOS/nixpkgs/issues/84312
|
||||||
|
postFetch = ''
|
||||||
|
rm "$out/kikit/_version.py"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = [
|
build-system = [
|
||||||
@ -75,6 +81,11 @@ buildPythonApplication rec {
|
|||||||
"kikit"
|
"kikit"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Recreate _version.py, deleted at fetch time due to non-reproducibility.
|
||||||
|
echo 'def get_versions(): return {"version": "${version}"}' > kikit/_version.py
|
||||||
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export PATH=$PATH:$out/bin
|
export PATH=$PATH:$out/bin
|
||||||
|
|
||||||
|
14
pkgs/by-name/ki/kikit/drop-versioneer.patch
Normal file
14
pkgs/by-name/ki/kikit/drop-versioneer.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index 9351fc9..75dfb2c 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -66,9 +66,6 @@
|
||||||
|
"solidpython>=1.1.2",
|
||||||
|
"commentjson>=0.9"
|
||||||
|
],
|
||||||
|
- setup_requires=[
|
||||||
|
- "versioneer"
|
||||||
|
- ],
|
||||||
|
extras_require={
|
||||||
|
"dev": ["pytest"],
|
||||||
|
},
|
@ -8,15 +8,15 @@
|
|||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pcbnewtransition";
|
pname = "pcbnewtransition";
|
||||||
version = "0.5.0";
|
version = "0.5.2";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
pname = "pcbnewTransition";
|
inherit pname;
|
||||||
inherit version;
|
inherit version;
|
||||||
hash = "sha256-4XNcnQzUWpY0NEfS2bdtkedvG4lY79jaPe0QqTWNW6s=";
|
hash = "sha256-zLnvbu0G2mJKCHLCjbIKHBqSfdEyhR+1afkOFU++TfI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ kicad ];
|
propagatedBuildInputs = [ kicad ];
|
||||||
|
Loading…
Reference in New Issue
Block a user