c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
39 lines
739 B
Nix
39 lines
739 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dirtyjson";
|
|
version = "1.0.8";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-kMpKGPP/MM6EnRANz0oAOVPHnTojSO8Fbx2cIiMaJf0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"dirtyjson"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "JSON decoder for Python that can extract data from the muck";
|
|
homepage = "https://github.com/codecobblers/dirtyjson";
|
|
license = with licenses; [ afl21 /* and */ mit];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|