From 3ba9e643fd0e438d196e439764fc72a72869ffd0 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Fri, 12 Jun 2020 13:57:27 -0700 Subject: [PATCH] python3Packages.seekpath: fix build, use github for tests --- .../development/python-modules/seekpath/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/seekpath/default.nix b/pkgs/development/python-modules/seekpath/default.nix index af74649899bf..e387f27c6738 100644 --- a/pkgs/development/python-modules/seekpath/default.nix +++ b/pkgs/development/python-modules/seekpath/default.nix @@ -1,17 +1,20 @@ -{ stdenv, buildPythonPackage, fetchPypi, numpy, future, spglib, glibcLocales, pytest }: +{ stdenv, buildPythonPackage, fetchFromGitHub, numpy, future, spglib, glibcLocales, pytest, scipy }: buildPythonPackage rec { pname = "seekpath"; version = "2.0.1"; - src = fetchPypi { - inherit pname version; - sha256 = "188513ee187fbbace49066a29ecea9bbd351f23da3bea33d507d0f590856b082"; + src = fetchFromGitHub { + owner = "giovannipizzi"; + repo = pname; + rev = "v${version}"; + sha256 = "0x592650ynacmx5n5bilj5lja4iw0gf1nfypy82cmy5z363qhqxn"; }; LC_ALL = "en_US.utf-8"; - propagatedBuildInputs = [ numpy spglib future ]; + # scipy isn't listed in install_requires, but used in package + propagatedBuildInputs = [ numpy spglib future scipy ]; nativeBuildInputs = [ glibcLocales ];