nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 pythonAtLeast,
5 fetchPypi,
6 setuptools,
7 ruamel-yaml,
8}:
9
10buildPythonPackage (finalAttrs: {
11 pname = "ruamel-yaml-string";
12 version = "0.1.1";
13 pyproject = true;
14
15 # ImportError: cannot import name 'Str' from 'ast'
16 disabled = pythonAtLeast "3.14";
17
18 src = fetchPypi {
19 inherit (finalAttrs) version;
20 pname = "ruamel.yaml.string";
21 hash = "sha256-enrtzAVdRcAE04t1b1hHTr77EGhR9M5WzlhBVwl4Q1A=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ ruamel-yaml ];
27
28 pythonImportsCheck = [ "ruamel.yaml" ];
29
30 meta = {
31 description = "Add dump_to_string/dumps method that returns YAML document as string";
32 homepage = "https://sourceforge.net/projects/ruamel-yaml-string/";
33 license = lib.licenses.mit;
34 maintainers = with lib.maintainers; [ fbeffa ];
35 };
36})