diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/svdtools/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/svdtools/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/svdtools/default.nix b/nixpkgs/pkgs/development/python-modules/svdtools/default.nix new file mode 100644 index 000000000000..b02058b8d301 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/svdtools/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, braceexpand +, click +, pyyaml +, lxml +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "svdtools"; + version = "0.1.20"; + + disabled = pythonOlder "3.8"; + + src = fetchPypi { + inherit version pname; + sha256 = "028s1bn50mfpaygf1wc2mvf06s50wqfplqrkhrjz6kx8vzrmwj72"; + }; + + propagatedBuildInputs = [ + braceexpand + click + pyyaml + lxml + ]; + + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "svdtools" ]; + + meta = with lib; { + description = "Python package to handle vendor-supplied, often buggy SVD files"; + homepage = "https://github.com/stm32-rs/svdtools"; + changelog = "https://github.com/stm32-rs/svdtools/blob/v${version}/CHANGELOG.md"; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = with maintainers; [ newam ]; + }; +} |