depot/third_party/nixpkgs/pkgs/development/python-modules/ruyaml/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

54 lines
986 B
Nix

{ lib
, buildPythonPackage
, distro
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools-scm
, setuptools-scm-git-archive
}:
buildPythonPackage rec {
pname = "ruyaml";
version = "0.91.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "pycontribs";
repo = pname;
rev = "v${version}";
sha256 = "0gxvwry7n1gczxkjzyfrr3fammllkvnnamja4yln8xrg3n1h89al";
};
nativeBuildInputs = [
setuptools-scm
setuptools-scm-git-archive
];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
propagatedBuildInputs = [
distro
];
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"-W" "ignore::DeprecationWarning"
];
pythonImportsCheck = [
"ruyaml"
];
meta = with lib; {
description = "YAML 1.2 loader/dumper package for Python";
homepage = "https://ruyaml.readthedocs.io/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}