nixpkgs/pkgs/development/python-modules/gower/default.nix
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

47 lines
822 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
scipy,
pandas,
}:
buildPythonPackage {
pname = "gower";
version = "0.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "wwwjk366";
repo = "gower";
rev = "d92f2145e65efe305143e9e30cc69b722d1c52e3";
hash = "sha256-9S4uUEuntKyFbUY4wdYshsVT5Cssc/MCHqOnKHwZoVI=";
};
patches = [
./fix-pyproject_toml.patch
];
build-system = [ setuptools ];
dependencies = [
scipy
pandas
];
pythonImportsCheck = [ "gower" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Gower's distance calculation in Python";
homepage = "https://github.com/wwwjk366/gower";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ b-rodrigues ];
};
}