python3Packages.pyudev: migrate to pyproject
This commit is contained in:
committed by
Sigmanificient
parent
0603359060
commit
2508c38ed5
@@ -9,12 +9,13 @@
|
||||
hypothesis,
|
||||
docutils,
|
||||
stdenvNoCC,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyudev";
|
||||
version = "0.24.4";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@@ -26,13 +27,9 @@ buildPythonPackage rec {
|
||||
--replace "find_library(name)" "'${lib.getLib udev}/lib/libudev.so'"
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest
|
||||
mock
|
||||
hypothesis
|
||||
docutils
|
||||
];
|
||||
propagatedBuildInputs = [ six ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ six ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
@@ -42,6 +39,13 @@ buildPythonPackage rec {
|
||||
# https://github.com/pyudev/pyudev/issues/187
|
||||
doCheck = false;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest
|
||||
mock
|
||||
hypothesis
|
||||
docutils
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://pyudev.readthedocs.org/";
|
||||
description = "Pure Python libudev binding";
|
||||
|
||||
Reference in New Issue
Block a user