python310Packages.us: add format

- disable on unsupported Python releases
This commit is contained in:
Fabian Affolter
2023-08-29 08:17:30 +02:00
parent f5110873c8
commit f0a25526fb
+11 -4
View File
@@ -7,19 +7,26 @@
buildPythonPackage rec {
pname = "us";
version = "3.1.1";
format = "setuptools";
propagatedBuildInputs = [ jellyfish ];
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-40eWPo0kocp0N69EP6aFkXdoR7UMhlDY7w61NILnBcI=";
hash = "sha256-40eWPo0kocp0N69EP6aFkXdoR7UMhlDY7w61NILnBcI=";
};
# Upstream requires jellyfish==0.5.6 but we have 0.6.1
# Upstream spins jellyfish
postPatch = ''
substituteInPlace setup.py --replace "jellyfish==" "jellyfish>="
substituteInPlace setup.py \
--replace "jellyfish==" "jellyfish>="
'';
propagatedBuildInputs = [
jellyfish
];
doCheck = false; # pypi version doesn't include tests
meta = {