From 2fad3c5a740c038019f6ce4c61c75f5b6759b89e Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Thu, 1 Aug 2019 13:28:44 -0700 Subject: [PATCH] pythonPackages.sepaxml: 2.0.0 -> 2.1.0 --- .../python-modules/sepaxml/default.nix | 31 ++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/sepaxml/default.nix b/pkgs/development/python-modules/sepaxml/default.nix index deb24a7130a7..6e6809663a6e 100644 --- a/pkgs/development/python-modules/sepaxml/default.nix +++ b/pkgs/development/python-modules/sepaxml/default.nix @@ -1,17 +1,32 @@ -{ stdenv, buildPythonPackage, fetchPypi, isPy3k }: +{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27 +, lxml +, pytest +, text-unidecode +, xmlschema +}: buildPythonPackage rec { - version = "2.0.0"; + version = "2.1.0"; pname = "sepaxml"; - disabled = !isPy3k; + disabled = isPy27; - src = fetchPypi { - inherit pname version; - sha256 = "0jhj8fa0lbyaw15q485kyyli9qgrmqr47a6z6pgqm40kwmjghiyc"; + src = fetchFromGitHub { + owner = "raphaelm"; + repo = "python-sepaxml"; + rev = version; + sha256 = "0lkb0nnyxmwvm6gkwls8w2290b66lwz9bv8p39wwcn7flabviwhj"; }; - # no tests included in PyPI package - doCheck = false; + propagatedBuildInputs = [ + text-unidecode + xmlschema + ]; + + checkInputs = [ pytest lxml ]; + + checkPhase = '' + pytest + ''; meta = with stdenv.lib; { homepage = https://github.com/raphaelm/python-sepaxml/;