mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
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>
47 lines
822 B
Nix
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 ];
|
|
};
|
|
}
|