diff options
author | Nick Cao <nickcao@nichi.co> | 2023-11-18 17:37:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-18 17:37:11 -0500 |
commit | 8314afe1725e064a483e0e7d96b657c89a6c67f0 (patch) | |
tree | 22c96b3d0736c8365027ae043c06c49eba661d44 /pkgs/development/python-modules | |
parent | b6805176f0bc67322e4044c58716e4cf12cea113 (diff) | |
parent | 8a8899aebec0485f5d8f24692c80bd4fa0086e19 (diff) | |
download | nixpkgs-8314afe1725e064a483e0e7d96b657c89a6c67f0.tar nixpkgs-8314afe1725e064a483e0e7d96b657c89a6c67f0.tar.gz nixpkgs-8314afe1725e064a483e0e7d96b657c89a6c67f0.tar.bz2 nixpkgs-8314afe1725e064a483e0e7d96b657c89a6c67f0.tar.lz nixpkgs-8314afe1725e064a483e0e7d96b657c89a6c67f0.tar.xz nixpkgs-8314afe1725e064a483e0e7d96b657c89a6c67f0.tar.zst nixpkgs-8314afe1725e064a483e0e7d96b657c89a6c67f0.zip |
Merge pull request #258858 from samueltardieu/imgtool
python3Packages.imgtool: init at 1.10.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/imgtool/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/imgtool/default.nix b/pkgs/development/python-modules/imgtool/default.nix new file mode 100644 index 00000000000..88ceeb23370 --- /dev/null +++ b/pkgs/development/python-modules/imgtool/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, setuptools +, cbor2 +, click +, cryptography +, intelhex +}: + +buildPythonPackage rec { + pname = "imgtool"; + version = "1.10.0"; + pyproject = true; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-A7NOdZNKw9lufEK2vK8Rzq9PRT98bybBfXJr0YMQS0A="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + cbor2 + click + cryptography + intelhex + ]; + + pythonImportsCheck = [ + "imgtool" + ]; + + meta = with lib; { + description = "MCUboot's image signing and key management"; + homepage = "https://github.com/mcu-tools/mcuboot"; + license = licenses.asl20; + maintainers = with maintainers; [ samueltardieu ]; + }; +} |