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 checkInputs = [
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [
41 "ruyaml"
42 ];
43
44 meta = with lib; {
45 description = "YAML 1.2 loader/dumper package for Python";
46 homepage = "https://ruyaml.readthedocs.io/";
47 license = with licenses; [ mit ];
48 maintainers = with maintainers; [ fab ];
49 };
50}