1{ lib 2, buildPythonPackage 3, isPy27 4, fetchFromGitHub 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "ms-cv"; 10 version = "0.1.1"; 11 12 disabled = isPy27; 13 14 src = fetchFromGitHub { 15 owner = "OpenXbox"; 16 repo = "ms_cv"; 17 rev = "v${version}"; 18 sha256 = "0pkna0kvmq1cp4rx3dnzxsvvlxxngryp77k42wkyw2phv19a2mjd"; 19 }; 20 21 postPatch = '' 22 substituteInPlace setup.py \ 23 --replace "pytest-runner" "" 24 ''; 25 26 nativeCheckInputs = [ 27 pytestCheckHook 28 ]; 29 30 meta = with lib; { 31 description = "Correlation vector implementation in python"; 32 homepage = "https://github.com/OpenXbox/ms_cv"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ dotlambda ]; 35 }; 36}