Merge pull request #268478 from fabaff/apricot
python311Packages.apricot-select: init at 0.6.1
This commit is contained in:
commit
0186b475aa
63
pkgs/development/python-modules/apricot-select/default.nix
Normal file
63
pkgs/development/python-modules/apricot-select/default.nix
Normal file
@ -0,0 +1,63 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, numba
|
||||
, numpy
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, torchvision
|
||||
, scikit-learn
|
||||
, scipy
|
||||
, setuptools
|
||||
, tqdm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "apricot-select";
|
||||
version = "0.6.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jmschrei";
|
||||
repo = "apricot";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-v9BHFxmlbwXVipPze/nV35YijdFBuka3gAl85AlsffQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numba
|
||||
numpy
|
||||
scipy
|
||||
tqdm
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
torchvision
|
||||
scikit-learn
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"apricot"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests require nose
|
||||
"tests/test_optimizers/test_knapsack_facility_location.py"
|
||||
"tests/test_optimizers/test_knapsack_feature_based.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module for submodular optimization for the purpose of selecting subsets of massive data sets";
|
||||
homepage = "https://github.com/jmschrei/apricot";
|
||||
changelog = "https://github.com/jmschrei/apricot/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -632,6 +632,8 @@ self: super: with self; {
|
||||
|
||||
appthreat-vulnerability-db = callPackage ../development/python-modules/appthreat-vulnerability-db { };
|
||||
|
||||
apricot-select = callPackage ../development/python-modules/apricot-select { };
|
||||
|
||||
aprslib = callPackage ../development/python-modules/aprslib { };
|
||||
|
||||
apscheduler = callPackage ../development/python-modules/apscheduler { };
|
||||
|
Loading…
Reference in New Issue
Block a user