python3Packages.pysbd: 0.3.3 -> 0.3.4

The upstream does not provide sdists on PyPi anymore, so switch to the
GitHub source instead.
This commit is contained in:
Martin Weinelt 2021-06-22 20:42:21 +02:00 committed by Jonathan Ringer
parent f64fb8bd31
commit 0ff9967dac

View File

@ -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 ];