python3Packages.atpython: fix build
This commit is contained in:
parent
5f073e62c0
commit
8fb7e9b9d4
1 changed files with 7 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
|||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pdm-pep517
|
||||
, sybil
|
||||
, typing-extensions
|
||||
}:
|
||||
|
@ -10,7 +11,7 @@
|
|||
buildPythonPackage rec {
|
||||
pname = "atpublic";
|
||||
version = "3.0.1";
|
||||
format = "setuptools";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
|
@ -19,6 +20,10 @@ buildPythonPackage rec {
|
|||
sha256 = "bb072b50e6484490404e5cb4034e782aaa339fdd6ac36434e53c10791aef18bf";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pdm-pep517
|
||||
];
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
||||
typing-extensions
|
||||
];
|
||||
|
@ -29,8 +34,7 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov=public" ""
|
||||
sed -i '/cov=public/d' pyproject.toml
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
|
Loading…
Reference in a new issue