nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 click, 6 colorlog, 7 gitpython, 8 pluggy, 9 pyelftools, 10 pytablewriter, 11 pytestCheckHook, 12 pyyaml, 13 ruamel-yaml, 14}: 15 16buildPythonPackage rec { 17 pname = "riscv-isac"; 18 version = "0.18.0"; 19 format = "setuptools"; 20 21 src = fetchFromGitHub { 22 owner = "riscv-software-src"; 23 repo = "riscv-isac"; 24 tag = version; 25 hash = "sha256-7CWUyYwzynFq/Qk5SzQB+ljsVVI98kPPDT63Emhqihw="; 26 }; 27 28 postPatch = '' 29 substituteInPlace riscv_isac/requirements.txt \ 30 --replace "pyelftools==0.26" "pyelftools" \ 31 --replace "pytest" "" 32 ''; 33 34 propagatedBuildInputs = [ 35 click 36 colorlog 37 gitpython 38 pluggy 39 pyelftools 40 pytablewriter 41 pyyaml 42 ruamel-yaml 43 ]; 44 45 nativeCheckInputs = [ pytestCheckHook ]; 46 47 pythonImportsCheck = [ "riscv_isac" ]; 48 49 meta = { 50 description = "ISA coverage extraction tool"; 51 mainProgram = "riscv_isac"; 52 homepage = "https://github.com/riscv/riscv-isac"; 53 changelog = "https://github.com/riscv-software-src/riscv-isac/blob/${version}/CHANGELOG.md"; 54 license = lib.licenses.bsd3; 55 maintainers = [ ]; 56 }; 57}