diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-11-19 20:41:43 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-11-19 20:41:43 +0100 |
commit | 50ddafc93189834c69eb159a336e5388be999457 (patch) | |
tree | 384643ed81b05040f3c63687bd831a45f40b28ea /pkgs/by-name/ad | |
parent | 25b859ae0eaaf1b8a36a2511713ffae4ae511fb8 (diff) |
adafruit-nrfutil: migrate from python package set
We only keep libraries in the python package set, not applications.
Diffstat (limited to 'pkgs/by-name/ad')
-rw-r--r-- | pkgs/by-name/ad/adafruit-nrfutil/package.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/by-name/ad/adafruit-nrfutil/package.nix b/pkgs/by-name/ad/adafruit-nrfutil/package.nix new file mode 100644 index 0000000000000..64dc160ff1fbc --- /dev/null +++ b/pkgs/by-name/ad/adafruit-nrfutil/package.nix @@ -0,0 +1,47 @@ +{ lib +, python3Packages +, fetchFromGitHub +}: + +python3Packages.buildPythonApplication rec { + pname = "adafruit-nrfutil"; + version = "0.5.3.post17"; + pyproject = true; + + src = fetchFromGitHub { + owner = "adafruit"; + repo = "Adafruit_nRF52_nrfutil"; + rev = "refs/tags/${version}"; + hash = "sha256-mHHKOQE9AGBX8RAyaPOy+JS3fTs98+AFdq9qsVy7go4="; + }; + + nativeBuildInputs = with python3Packages; [ + setuptools + ]; + + propagatedBuildInputs = with python3Packages; [ + click + ecdsa + pyserial + ]; + + nativeCheckInputs = with python3Packages; [ + behave + nose + ]; + + preCheck = '' + mkdir test-reports + ''; + + pythonImportsCheck = [ + "nordicsemi" + ]; + + meta = with lib; { + homepage = "https://github.com/adafruit/Adafruit_nRF52_nrfutil"; + description = "Modified version of Nordic's nrfutil 0.5.x for use with the Adafruit Feather nRF52"; + license = licenses.bsd3; + maintainers = with maintainers; [ stargate01 ]; + }; +} |