Merge pull request #231225 from r-ryantm/auto-update/python310Packages.riscv-isac

python310Packages.riscv-isac: 0.16.1 -> 0.17.0

authored by Weijia Wang and committed by GitHub 179e4e16 43a039f4

+28 -10
+28 -10
pkgs/development/python-modules/riscv-isac/default.nix
··· 1 - { buildPythonPackage 1 + { lib 2 + , buildPythonPackage 2 3 , fetchFromGitHub 3 - , lib 4 4 , click 5 5 , colorlog 6 6 , gitpython 7 + , pluggy 7 8 , pyelftools 8 9 , pytablewriter 9 - , pytest 10 + , pytestCheckHook 10 11 , pyyaml 11 12 , ruamel-yaml 13 + , pythonOlder 12 14 }: 13 15 14 16 buildPythonPackage rec { 15 17 pname = "riscv-isac"; 16 - version = "0.16.1"; 18 + version = "0.17.0"; 19 + format = "setuptools"; 20 + 21 + disabled = pythonOlder "3.7"; 17 22 18 23 src = fetchFromGitHub { 19 24 owner = "riscv-software-src"; 20 25 repo = pname; 21 - rev = version; 22 - hash = "sha256-Krjr9bvpoOeNfMbYj/QbJ+Y+AVLjwrzj8KKMUXCfnMA="; 26 + rev = "refs/tags/${version}"; 27 + hash = "sha256-I0RsvSCrSlNGVj8z+WUQx6vbdNkKCRyMFvNx+0mTBAE="; 23 28 }; 24 29 25 - postPatch = "substituteInPlace riscv_isac/requirements.txt --replace 'pyelftools==0.26' pyelftools"; 30 + postPatch = '' 31 + substituteInPlace riscv_isac/requirements.txt \ 32 + --replace "pyelftools==0.26" "pyelftools" \ 33 + --replace "pytest" "" 34 + ''; 26 35 27 36 propagatedBuildInputs = [ 28 37 click 29 38 colorlog 30 39 gitpython 40 + pluggy 31 41 pyelftools 32 42 pytablewriter 33 - pytest 34 43 pyyaml 35 44 ruamel-yaml 36 45 ]; 37 46 47 + nativeCheckInputs = [ 48 + pytestCheckHook 49 + ]; 50 + 51 + pythonImportsCheck = [ 52 + "riscv_isac" 53 + ]; 54 + 38 55 meta = with lib; { 56 + description = "An ISA coverage extraction tool"; 39 57 homepage = "https://github.com/riscv/riscv-isac"; 40 - description = "An ISA coverage extraction tool"; 41 - maintainers = with maintainers; [ genericnerdyusername ]; 58 + changelog = "https://github.com/riscv-software-src/riscv-isac/blob/${version}/CHANGELOG.md"; 42 59 license = licenses.bsd3; 60 + maintainers = with maintainers; [ genericnerdyusername ]; 43 61 }; 44 62 }