From 0ff9967dac0c2184cb171e058d8093af8cd4367f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 22 Jun 2021 20:42:21 +0200 Subject: [PATCH] python3Packages.pysbd: 0.3.3 -> 0.3.4 The upstream does not provide sdists on PyPi anymore, so switch to the GitHub source instead. --- pkgs/development/python-modules/pysbd/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pysbd/default.nix b/pkgs/development/python-modules/pysbd/default.nix index f25283dbbbcc..b85d1f6cd531 100644 --- a/pkgs/development/python-modules/pysbd/default.nix +++ b/pkgs/development/python-modules/pysbd/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , pythonOlder , tqdm , spacy @@ -8,12 +8,15 @@ buildPythonPackage rec { pname = "pysbd"; - version = "0.3.3"; + version = "0.3.4"; disabled = pythonOlder "3.5"; - src = fetchPypi { - inherit pname version; - sha256 = "56ab48a28a8470f0042a4cb7c9da8a6dde8621ecf87a86d75f201cbf1837e77f"; + # provides no sdist on pypi + src = fetchFromGitHub { + owner = "nipunsadvilkar"; + repo = "pySBD"; + rev = "v${version}"; + sha256 = "12p7qm237z56hw4zr03n8rycgfymhki2m9c4w3ib0mvqq122a5dp"; }; checkInputs = [ tqdm spacy ];