mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
33 lines
729 B
Nix
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 ];
|
|
};
|
|
}
|