python3Packages.dpath: modernize (#462380)
This commit is contained in:
@@ -3,8 +3,6 @@
|
|||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchPypi,
|
fetchPypi,
|
||||||
hypothesis,
|
hypothesis,
|
||||||
pythonOlder,
|
|
||||||
mock,
|
|
||||||
nose2,
|
nose2,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
setuptools,
|
setuptools,
|
||||||
@@ -13,31 +11,28 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "dpath";
|
pname = "dpath";
|
||||||
version = "2.2.0";
|
version = "2.2.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-NPfmMNxV6j8hnlVXJvXaS0sl8iADGcjmkCw5Qljdaj4=";
|
hash = "sha256-NPfmMNxV6j8hnlVXJvXaS0sl8iADGcjmkCw5Qljdaj4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
hypothesis
|
hypothesis
|
||||||
mock
|
|
||||||
nose2
|
nose2
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "dpath" ];
|
pythonImportsCheck = [ "dpath" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Python library for accessing and searching dictionaries via /slashed/paths ala xpath";
|
description = "Python library for accessing and searching dictionaries via /slashed/paths ala xpath";
|
||||||
homepage = "https://github.com/akesterson/dpath-python";
|
homepage = "https://github.com/akesterson/dpath-python";
|
||||||
changelog = "https://github.com/dpath-maintainers/dpath-python/releases/tag/v${version}";
|
changelog = "https://github.com/dpath-maintainers/dpath-python/releases/tag/v${version}";
|
||||||
license = with licenses; [ mit ];
|
license = lib.licenses.mit;
|
||||||
maintainers = with maintainers; [ mmlb ];
|
maintainers = with lib.maintainers; [ mmlb ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user