Unverified Commit bb87af85 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.dpath: modernize (#462380)

parents c24acb9a 29dc4206
Loading
Loading
Loading
Loading
+5 −10
Original line number Diff line number Diff line
@@ -3,8 +3,6 @@
  buildPythonPackage,
  fetchPypi,
  hypothesis,
  pythonOlder,
  mock,
  nose2,
  pytestCheckHook,
  setuptools,
@@ -13,31 +11,28 @@
buildPythonPackage rec {
  pname = "dpath";
  version = "2.2.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-NPfmMNxV6j8hnlVXJvXaS0sl8iADGcjmkCw5Qljdaj4=";
  };

  nativeBuildInputs = [ setuptools ];
  build-system = [ setuptools ];

  nativeCheckInputs = [
    hypothesis
    mock
    nose2
    pytestCheckHook
  ];

  pythonImportsCheck = [ "dpath" ];

  meta = with lib; {
  meta = {
    description = "Python library for accessing and searching dictionaries via /slashed/paths ala xpath";
    homepage = "https://github.com/akesterson/dpath-python";
    changelog = "https://github.com/dpath-maintainers/dpath-python/releases/tag/v${version}";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ mmlb ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ mmlb ];
  };
}