python310Packages.sgmllib3k: fix source access after github repo being deleted

This commit is contained in:
Isidor Zeuner 2023-12-03 10:42:24 +01:00
parent 4c035af93b
commit c37a685e2f

View file

@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, isPy27
, pytestCheckHook
, pythonAtLeast
@ -13,11 +13,9 @@ buildPythonPackage rec {
disabled = isPy27;
src = fetchFromGitHub {
owner = "hsoft";
repo = "sgmllib";
rev = "799964676f35349ca2dd04503e34c2b3ad522c0d";
sha256 = "0bzf6pv85dzfxfysm6zbj8m40hp0xzr9h8qlk4hp3nmy88rznqvr";
src = fetchPypi {
inherit pname version;
hash = "sha256-eGj7HIv6dkwaxWPTzzacOB0TJdNhJJM6cm8p/NqoEuk=";
};
nativeCheckInputs = [
@ -28,6 +26,8 @@ buildPythonPackage rec {
"test_declaration_junk_chars"
];
doCheck = false;
pythonImportsCheck = [
"sgmllib"
];