summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/dirtyjson/default.nix
blob: 43b7558e84bf76ad54cbd9589bfa3f7278804f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "dirtyjson";
  version = "1.0.8";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-kMpKGPP/MM6EnRANz0oAOVPHnTojSO8Fbx2cIiMaJf0=";
  };

  nativeBuildInputs = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "dirtyjson" ];

  meta = {
    description = "JSON decoder for Python that can extract data from the muck";
    homepage = "https://github.com/codecobblers/dirtyjson";
    license = with lib.licenses; [
      afl21 # and
      mit
    ];
    maintainers = with lib.maintainers; [ fab ];
  };
}