Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d8a7d04a29b9
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0dd910d4702f
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Apr 10, 2020

  1. python3Packages.graspy: init at 0.2

    bcdarwin authored and Jon committed Apr 10, 2020

    Unverified

    No user is associated with the committer email.
    Copy the full SHA
    0dd910d View commit details
Showing with 54 additions and 0 deletions.
  1. +52 −0 pkgs/development/python-modules/graspy/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
52 changes: 52 additions & 0 deletions pkgs/development/python-modules/graspy/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, pytest
, pytestcov
, matplotlib
, networkx
, numpy
, scikitlearn
, scipy
, seaborn
}:

buildPythonPackage rec {
pname = "graspy";
version = "0.2";

disabled = isPy27;

src = fetchFromGitHub {
owner = "neurodata";
repo = pname;
rev = "v${version}";
sha256 = "1ss7d71lwblimg7ri88ir9w59j0ri13wl75091hjf7q0mchqr6yd";
};

propagatedBuildInputs = [
matplotlib
networkx
numpy
scikitlearn
scipy
seaborn
];

checkInputs = [ pytest pytestcov ];

checkPhase = ''
runHook preCheck
# `test_autogmm` takes too long; fixed in next release (graspy/pull/328)
pytest tests -k 'not test_autogmm'
runHook postCheck
'';

meta = with lib; {
homepage = "https://graspy.neurodata.io";
description = "A package for graph statistical algorithms";
license = licenses.asl20;
maintainers = with maintainers; [ bcdarwin ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -6490,6 +6490,8 @@ in {

graph_nets = callPackage ../development/python-modules/graph_nets { };

graspy = callPackage ../development/python-modules/graspy { };

influxgraph = callPackage ../development/python-modules/influxgraph { };

pyspotify = callPackage ../development/python-modules/pyspotify { };