From f2db3204825a98555f4cf6dc00f3a9f56aae3734 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Wed, 27 Nov 2019 16:43:32 -0800 Subject: [PATCH] python3Packages.atomman: 1.2.8 -> 1.3.0 --- .../python-modules/atomman/default.nix | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/atomman/default.nix b/pkgs/development/python-modules/atomman/default.nix index ef69ee91d38..d873700f32a 100644 --- a/pkgs/development/python-modules/atomman/default.nix +++ b/pkgs/development/python-modules/atomman/default.nix @@ -1,34 +1,33 @@ -{ stdenv -, buildPythonPackage -, fetchPypi -, xmltodict -, datamodeldict -, numpy -, matplotlib -, scipy -, pandas +{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27 , cython +, datamodeldict +, matplotlib , numericalunits +, numpy +, pandas , pytest +, scipy +, toolz +, xmltodict }: buildPythonPackage rec { - version = "1.2.8"; + version = "1.3.0"; pname = "atomman"; + disabled = isPy27; - src = fetchPypi { - inherit pname version; - sha256 = "0ed099fdceca2d733e81afb08d777e8e852a6e53660d6d268f3739b8d323ced9"; + src = fetchFromGitHub { + owner = "usnistgov"; + repo = "atomman"; + rev = "v${version}"; + sha256 = "09pfykd96wmw00s3kgabghykjn8b4yjml4ybpi7kwy7ygdmzcx51"; }; checkInputs = [ pytest ]; - propagatedBuildInputs = [ xmltodict datamodeldict numpy matplotlib scipy pandas cython numericalunits ]; - - # tests not included with Pypi release - doCheck = false; + propagatedBuildInputs = [ xmltodict datamodeldict numpy matplotlib scipy pandas cython numericalunits toolz ]; checkPhase = '' - py.test tests + py.test tests -k 'not test_atomic' ''; meta = with stdenv.lib; {