depot/third_party/nixpkgs/pkgs/development/python-modules/scikit-tda/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

64 lines
979 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, scipy
, scikit-learn
, matplotlib
, numba
, umap-learn
, cython
, ripser
, persim
, pillow
, kmapper
, tadasets
, pytest
, isPy27
}:
buildPythonPackage rec {
pname = "scikit-tda";
version = "1.0.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "scikit-tda";
repo = "scikit-tda";
rev = "v${version}";
sha256 = "0yhmf5jmxywyj6l9q0rfv9r8wpdk063fvvfnb4azwwccblgz37rj";
};
propagatedBuildInputs = [
numpy
scipy
scikit-learn
matplotlib
numba
umap-learn
cython
ripser
persim
pillow
kmapper
tadasets
];
nativeCheckInputs = [
pytest
];
checkPhase = ''
pytest test
'';
# tests will be included in next release
doCheck = false;
meta = with lib; {
description = "Topological Data Analysis for humans";
homepage = "https://github.com/scikit-tda/scikit-tda";
license = licenses.mit;
maintainers = [ ];
};
}