nixpkgs/pkgs/development/python-modules/strictyaml/default.nix
2020-12-01 14:44:20 +01:00

32 lines
741 B
Nix

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