From 052a6c1becab6d379c086d8634e929f0bc538f8b Mon Sep 17 00:00:00 2001 From: Mira Ressel Date: Thu, 11 Feb 2021 15:44:49 +0100 Subject: [PATCH] python.precis-i18n: 1.0.0 -> 1.0.2 1.0.0 is 3 years old and fails to build against python 3.9. Fetch from github rather than pypi; the pypi release lacks supporting files that are required to run the test suite. --- .../python-modules/precis-i18n/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/precis-i18n/default.nix b/pkgs/development/python-modules/precis-i18n/default.nix index 199a6804ea98..3773a724e938 100644 --- a/pkgs/development/python-modules/precis-i18n/default.nix +++ b/pkgs/development/python-modules/precis-i18n/default.nix @@ -1,15 +1,16 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k }: +{ lib, buildPythonPackage, fetchFromGitHub, isPy3k }: buildPythonPackage rec { pname = "precis-i18n"; - version = "1.0.0"; + version = "1.0.2"; disabled = !isPy3k; - src = fetchPypi { - pname = "precis_i18n"; - inherit version; - sha256 = "0gjhvwd8aifx94rl1ag08vlmndyx2q3fkyqb0c4i46x3p2bc2yi2"; + src = fetchFromGitHub { + owner = "byllyfish"; + repo = "precis_i18n"; + rev = "v${version}"; + hash = "sha256:1r9pah1kgik6valf15ac7ybw0szr92cq84kwjvm6mq3z46j1pmkr"; }; meta = {