diff --git a/pkgs/development/python-modules/XlsxWriter/default.nix b/pkgs/development/python-modules/XlsxWriter/default.nix index 077be5321c70..99da64268ee2 100644 --- a/pkgs/development/python-modules/XlsxWriter/default.nix +++ b/pkgs/development/python-modules/XlsxWriter/default.nix @@ -1,12 +1,17 @@ -{lib, buildPythonPackage, fetchPypi}: +{lib, buildPythonPackage, fetchFromGitHub}: buildPythonPackage rec { + pname = "XlsxWriter"; version = "1.1.5"; - src = fetchPypi { - inherit pname version; - sha256 = "de9ef46088489915eaaee00c7088cff93cf613e9990b46b933c98eb46f21b47f"; + # PyPI release tarball doesn't contain tests so let's use GitHub. See: + # https://github.com/jmcnamara/XlsxWriter/issues/327 + src = fetchFromGitHub{ + owner = "jmcnamara"; + repo = pname; + rev = "RELEASE_${version}"; + sha256 = "13250y53mr0pki93sqscy2bx01fxh6b6wvvj6m95ky0wqrrbmg39"; }; meta = { @@ -15,4 +20,5 @@ buildPythonPackage rec { maintainers = with lib.maintainers; [ jluttine ]; license = lib.licenses.bsd2; }; + }