Files
nixpkgs/pkgs/development/python-modules/ms-cv/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
724 B
Nix

{
lib,
buildPythonPackage,
isPy27,
fetchFromGitHub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ms-cv";
version = "0.1.1";
format = "setuptools";
disabled = isPy27;
src = fetchFromGitHub {
owner = "OpenXbox";
repo = "ms_cv";
rev = "v${version}";
sha256 = "0pkna0kvmq1cp4rx3dnzxsvvlxxngryp77k42wkyw2phv19a2mjd";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Correlation vector implementation in python";
homepage = "https://github.com/OpenXbox/ms_cv";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}