depot/third_party/nixpkgs/pkgs/development/python-modules/riscv-config/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

45 lines
920 B
Nix

{ lib
, buildPythonPackage
, cerberus
, fetchFromGitHub
, fetchpatch
, pythonOlder
, pyyaml
, ruamel-yaml
}:
buildPythonPackage rec {
pname = "riscv-config";
version = "3.13.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "riscv-software-src";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-tMV5mRqOLURkr8HQN1yvq5Cf3yz2NRBY6uaaxNKCy2c=";
};
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;
};
}