Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fsspec, 6 pytest-asyncio, 7 pytest-mock, 8 pytestCheckHook, 9 reflink, 10 setuptools-scm, 11 shortuuid, 12}: 13 14buildPythonPackage rec { 15 pname = "dvc-objects"; 16 version = "5.1.2"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "iterative"; 21 repo = "dvc-objects"; 22 tag = version; 23 hash = "sha256-Lq881EnszwS+o8vaiiVgerdXAcalLT0PIJoW98+rw7w="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 --replace " --benchmark-skip" "" 29 ''; 30 31 build-system = [ setuptools-scm ]; 32 33 dependencies = [ fsspec ]; 34 35 nativeCheckInputs = [ 36 pytest-asyncio 37 pytest-mock 38 pytestCheckHook 39 reflink 40 shortuuid 41 ]; 42 43 pythonImportsCheck = [ "dvc_objects" ]; 44 45 disabledTestPaths = [ 46 # Disable benchmarking 47 "tests/benchmarks/" 48 ]; 49 50 meta = with lib; { 51 description = "Library for DVC objects"; 52 homepage = "https://github.com/iterative/dvc-objects"; 53 changelog = "https://github.com/iterative/dvc-objects/releases/tag/${src.tag}"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}