nixpkgs/pkgs/development/python-modules/strictyaml/default.nix
2020-08-15 16:28:32 -07:00

33 lines
729 B
Nix

{ buildPythonPackage
, lib
, fetchPypi
, isPy27
, ruamel_yaml
, python-dateutil
}:
buildPythonPackage rec {
version = "1.1.0";
pname = "strictyaml";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1jj20fwcpvqzp7rnzk3mc3xm94wz3gy3zi3787nj7c3syzadn1vb";
};
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 ];
};
}