mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
python3Packages.gower: init at 0.1.2 (#350747)
This commit is contained in:
commit
79245ef3bb
47
pkgs/development/python-modules/gower/default.nix
Normal file
47
pkgs/development/python-modules/gower/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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]
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user