about summary refs log tree commit diff
path: root/pkgs/development/python-modules/saneyaml/default.nix
blob: 9dd89af51fdfec4811b3dfbae9c7f3a6406fac96 (plain) (blame)
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
35
36
37
38
39
40
41
{ lib
, fetchPypi
, buildPythonPackage
, setuptools-scm
, pyyaml
, pytestCheckHook
}:
buildPythonPackage rec {
  pname = "saneyaml";
  version = "0.6.0";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-sjCfeDZiPNbbkyV067xD4/ZcdD52NReeZL7ssNFibkQ=";
  };

  dontConfigure = true;

  nativeBuildInputs = [
    setuptools-scm
  ];

  propagatedBuildInputs = [
    pyyaml
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "saneyaml"
  ];

  meta = with lib; {
    description = "A PyYaml wrapper with sane behaviour to read and write readable YAML safely";
    homepage = "https://github.com/nexB/saneyaml";
    license = licenses.asl20;
    maintainers = teams.determinatesystems.members;
  };
}