python3Packages.pyudev: modernize and migrate to pyproject (#523007)
This commit is contained in:
@@ -9,15 +9,16 @@
|
||||
hypothesis,
|
||||
docutils,
|
||||
stdenvNoCC,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "pyudev";
|
||||
version = "0.24.4";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-54i7mDcAsahO/C6IhisKUa8qmV1bhryZl1RlBc97Nrw=";
|
||||
};
|
||||
|
||||
@@ -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,10 +39,18 @@ 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";
|
||||
changelog = "https://github.com/pyudev/pyudev/blob/v${finalAttrs.version}/CHANGES.rst";
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = with lib.maintainers; [ frogamic ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user