nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 setuptools-scm,
6 pyyaml,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "saneyaml";
12 version = "0.6.1";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-Gc+9i/lNcwmYFix5D+XOyau1MAzFiQ/jfcbbyqj7Frs=";
18 };
19
20 dontConfigure = true;
21
22 build-system = [ setuptools-scm ];
23
24 dependencies = [ pyyaml ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "saneyaml" ];
29
30 meta = {
31 description = "PyYaml wrapper with sane behaviour to read and write readable YAML safely";
32 homepage = "https://github.com/nexB/saneyaml";
33 changelog = "https://github.com/aboutcode-org/saneyaml/blob/v${version}/CHANGELOG.rst";
34 license = lib.licenses.asl20;
35 maintainers = [ ];
36 };
37}