nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 940 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 pyyaml, 11 ruamel-yaml, 12 13 # tests 14 pytestCheckHook, 15}: 16 17buildPythonPackage rec { 18 pname = "hyperpyyaml"; 19 version = "1.2.3"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "speechbrain"; 24 repo = "hyperpyyaml"; 25 tag = "v${version}"; 26 hash = "sha256-/7OrIR61zQYl2+RjiOOlaqUGWBieon5fe8sgmEvKowo="; 27 }; 28 29 build-system = [ 30 setuptools 31 ]; 32 33 dependencies = [ 34 pyyaml 35 ruamel-yaml 36 ]; 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 pythonImportsCheck = [ "hyperpyyaml" ]; 41 42 meta = { 43 description = "Extensions to YAML syntax for better python interaction"; 44 homepage = "https://github.com/speechbrain/HyperPyYAML"; 45 changelog = "https://github.com/speechbrain/HyperPyYAML/releases/tag/${src.tag}"; 46 license = lib.licenses.asl20; 47 maintainers = with lib.maintainers; [ GaetanLepage ]; 48 }; 49}