nixpkgs/pkgs/development/python-modules/strictyaml/default.nix
2021-08-19 00:44:50 +00:00

38 lines
850 B
Nix

{ buildPythonPackage
, lib
, fetchPypi
, isPy27
, ruamel_yaml
, python-dateutil
}:
buildPythonPackage rec {
version = "1.4.4";
pname = "strictyaml";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "044ae3bec56f31e18dff8cfa62a2c9c028f4c7fe4c0f761e50761184d3b68eef";
};
postPatch = ''
substituteInPlace setup.py \
--replace "ruamel.yaml==0.17.4" "ruamel.yaml"
'';
propagatedBuildInputs = [ ruamel_yaml python-dateutil ];
# Library tested with external tool
# https://hitchdev.com/approach/contributing-to-hitch-libraries/
doCheck = false;
pythonImportsCheck = [ "strictyaml" ];
meta = with lib; {
description = "Strict, typed YAML parser";
homepage = "https://hitchdev.com/strictyaml/";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}