depot/third_party/nixpkgs/pkgs/development/python-modules/riscv-config/default.nix

46 lines
920 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, cerberus
, fetchFromGitHub
, fetchpatch
, pythonOlder
, pyyaml
, ruamel-yaml
}:
buildPythonPackage rec {
pname = "riscv-config";
version = "3.17.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "riscv-software-src";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-dMs900w5sXggqxU+2W8qKrKjGpyrXhA2QEbXQeaKZTs=";
};
propagatedBuildInputs = [
cerberus
pyyaml
ruamel-yaml
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"riscv_config"
];
meta = with lib; {
description = "RISC-V configuration validator";
homepage = "https://github.com/riscv/riscv-config";
changelog = "https://github.com/riscv-software-src/riscv-config/blob/${version}/CHANGELOG.md";
maintainers = with maintainers; [ genericnerdyusername ];
license = licenses.bsd3;
};
}