1{ lib 2, buildPythonPackage 3, distro 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, setuptools-scm 8, setuptools-scm-git-archive 9}: 10 11buildPythonPackage rec { 12 pname = "ruyaml"; 13 version = "0.91.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "pycontribs"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "0gxvwry7n1gczxkjzyfrr3fammllkvnnamja4yln8xrg3n1h89al"; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools-scm 27 setuptools-scm-git-archive 28 ]; 29 30 SETUPTOOLS_SCM_PRETEND_VERSION = version; 31 32 propagatedBuildInputs = [ 33 distro 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 ]; 39 40 pytestFlagsArray = [ 41 "-W" "ignore::DeprecationWarning" 42 ]; 43 44 pythonImportsCheck = [ 45 "ruyaml" 46 ]; 47 48 meta = with lib; { 49 description = "YAML 1.2 loader/dumper package for Python"; 50 homepage = "https://ruyaml.readthedocs.io/"; 51 license = with licenses; [ mit ]; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}