nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromCodeberg, 5 setuptools, 6 setuptools-scm, 7 hypothesis, 8 pytest-timeout, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "multivolumefile"; 14 version = "0.2.3"; 15 pyproject = true; 16 17 src = fetchFromCodeberg { 18 owner = "miurahr"; 19 repo = "multivolume"; 20 tag = "v${version}"; 21 hash = "sha256-7gjfF7biQZOcph2dfwi2ouDn/uIYik/KBQ0k6u5Ne+Q="; 22 }; 23 24 postPatch = 25 # Fix typo: `tools` -> `tool` 26 # upstream PR: https://codeberg.org/miurahr/multivolume/pulls/9 27 '' 28 substituteInPlace pyproject.toml \ 29 --replace-fail 'tools.setuptools_scm' 'tool.setuptools_scm' 30 ''; 31 32 build-system = [ 33 setuptools 34 setuptools-scm 35 ]; 36 37 nativeCheckInputs = [ 38 hypothesis 39 pytest-timeout 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ 44 "multivolumefile" 45 ]; 46 47 meta = { 48 description = "Library to provide a file-object wrapping multiple files as virtually like as a single file"; 49 homepage = "https://codeberg.org/miurahr/multivolume"; 50 changelog = "https://codeberg.org/miurahr/multivolume/src/tag/v${version}/Changelog.rst#v${version}"; 51 license = lib.licenses.gpl2Plus; 52 maintainers = with lib.maintainers; [ 53 pitkling 54 PopeRigby 55 ]; 56 }; 57}