mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
python310Packages.spsdk: 1.6.3 -> 1.8.0
This commit is contained in:
parent
78746f5621
commit
6545a9245d
@ -1,7 +1,6 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, dos2unix
|
||||
, pythonRelaxDepsHook
|
||||
, asn1crypto
|
||||
@ -9,6 +8,7 @@
|
||||
, bincopy
|
||||
, bitstring
|
||||
, click
|
||||
, click-command-tree
|
||||
, click-option-group
|
||||
, cmsis-pack-manager
|
||||
, commentjson
|
||||
@ -33,42 +33,32 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spsdk";
|
||||
version = "1.6.3";
|
||||
version = "1.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "NXPmicro";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-JMhd2XdbjEN6SUzFgcBHd/dStiuYeXXis6pfijSfUso=";
|
||||
hash = "sha256-yCmkOrUe5XqbuHeo7F84j1gmdzpdpCRWdD9V74U64c4=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/NXPmicro/spsdk/pull/43
|
||||
(fetchpatch {
|
||||
name = "cryptography-37-compat.patch";
|
||||
url = "https://github.com/NXPmicro/spsdk/commit/a85b854de1093de593d27fa64de442224ab2e0fd.patch";
|
||||
sha256 = "sha256-4pXV/8RaNuGl7KNdoGD/8YnPQ2ZmUQOjXWA/Yy0Kxu8=";
|
||||
})
|
||||
# https://github.com/NXPmicro/spsdk/pull/41
|
||||
(fetchpatch {
|
||||
name = "blhost-click-8-1-compat.patch";
|
||||
url = "https://github.com/NXPmicro/spsdk/commit/5112b1b69aa681d265035475e73d28ea0c8cb6ab.patch";
|
||||
sha256 = "sha256-Okz6Er6OVuAA5IlB5IabSa/gUSLa+E2Ltd+J3uoIg6o=";
|
||||
})
|
||||
nativeBuildInputs = [
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||
pythonRelaxDeps = [
|
||||
"bincopy"
|
||||
"bitstring"
|
||||
"cmsis-pack-manager"
|
||||
"cryptography"
|
||||
"deepmerge"
|
||||
"jinja2"
|
||||
"pylink-square"
|
||||
"pyocd"
|
||||
];
|
||||
pythonRemoveDeps = [ "pyocd-pemicro" ];
|
||||
|
||||
pythonRemoveDeps = [
|
||||
"pyocd-pemicro"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
asn1crypto
|
||||
@ -76,6 +66,7 @@ buildPythonPackage rec {
|
||||
bincopy
|
||||
bitstring
|
||||
click
|
||||
click-command-tree
|
||||
click-option-group
|
||||
cmsis-pack-manager
|
||||
commentjson
|
||||
@ -101,12 +92,6 @@ buildPythonPackage rec {
|
||||
voluptuous
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# tests also fail on debian, so presumable they are broken
|
||||
"test_elftosb_mbi_signed"
|
||||
"test_elftosb_sb31"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "spsdk" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user