python3Packages.binaryornot: migrate to pyproject
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
setuptools,
|
||||
chardet,
|
||||
hypothesis,
|
||||
}:
|
||||
@@ -9,20 +10,22 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "binaryornot";
|
||||
version = "0.4.4";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "359501dfc9d40632edc9fac890e19542db1a287bbcfa58175b66658392018061";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
prePatch = ''
|
||||
# TypeError: binary() got an unexpected keyword argument 'average_size'
|
||||
substituteInPlace tests/test_check.py \
|
||||
--replace "average_size=512" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ chardet ];
|
||||
dependencies = [ chardet ];
|
||||
|
||||
nativeCheckInputs = [ hypothesis ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user