Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / strictyaml / default.nix
blobd9d57faf48f4d0d5f290115ec19a7ca47c187079
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , ruamel-yaml
6 , python-dateutil
7 }:
9 buildPythonPackage rec {
10   pname = "strictyaml";
11   version = "1.7.3";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-IvhUpfyrQrXduoAwoOS+UcqJrwJnlhyNbPqGOVWGxAc=";
19   };
21   postPatch = ''
22     substituteInPlace setup.py \
23       --replace "ruamel.yaml==0.17.4" "ruamel.yaml"
24   '';
26   propagatedBuildInputs = [
27     ruamel-yaml
28     python-dateutil
29   ];
31   # Library tested with external tool
32   # https://hitchdev.com/approach/contributing-to-hitch-libraries/
33   doCheck = false;
35   pythonImportsCheck = [
36     "strictyaml"
37   ];
39   meta = with lib; {
40     description = "Strict, typed YAML parser";
41     homepage = "https://hitchdev.com/strictyaml/";
42     changelog = "https://hitchdev.com/strictyaml/changelog/";
43     license = licenses.mit;
44     maintainers = with maintainers; [ jonringer ];
45   };