python3Packages.gower: init at 0.1.2 (#350747)

This commit is contained in:
OTABI Tomoya 2024-11-20 19:02:58 +09:00 committed by GitHub
commit 79245ef3bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
scipy,
pandas,
}:
buildPythonPackage rec {
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 = with lib; {
description = "Gower's distance calculation in Python";
homepage = "https://github.com/wwwjk366/gower";
license = licenses.mit;
maintainers = with maintainers; [ b-rodrigues ];
};
}

View File

@ -0,0 +1,11 @@
diff --git a/pyproject.toml b/pyproject.toml
index dc396ba..d12ba41 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -18,4 +18,5 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
+dynamic = ["license", "dependencies"]
[project.urls]

View File

@ -5409,6 +5409,8 @@ self: super: with self; {
goveelights = callPackage ../development/python-modules/goveelights { };
gower = callPackage ../development/python-modules/gower { };
gpapi = callPackage ../development/python-modules/gpapi { };
gpaw = callPackage ../development/python-modules/gpaw { };