Skip to content

Commit c8a95c7

Browse files
committed
avocado-framework: init at 113.0
1 parent 505adc8 commit c8a95c7

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
modules = import ./modules; # NixOS modules
1515
overlays = import ./overlays; # nixpkgs overlays
1616

17+
avocado-framework = pkgs.callPackage ./pkgs/avocado-framework { };
1718
git-blame-someone-else = pkgs.callPackage ./pkgs/git-blame-someone-else { };
1819
pingfs = pkgs.callPackage ./pkgs/pingfs { };
1920
# yamlresume = pkgs.callPackage ./pkgs/yamlresume { };

pkgs/avocado-framework/default.nix

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
lib,
3+
python3Packages,
4+
fetchFromGitHub,
5+
nix-update-script,
6+
}:
7+
8+
python3Packages.buildPythonPackage (finalAttrs: {
9+
pname = "avocado-framework";
10+
version = "113.0";
11+
format = "setuptools";
12+
13+
src = fetchFromGitHub {
14+
owner = "avocado-framework";
15+
repo = "avocado";
16+
tag = finalAttrs.version;
17+
hash = "sha256-vfo2PIci2DPlCLEd/F3Joa5TCo85W7OMhgq6iOJ5o2w=";
18+
};
19+
20+
build-system = with python3Packages; [
21+
setuptools
22+
];
23+
24+
dependencies = with python3Packages; [
25+
distutils
26+
];
27+
28+
propagatedBuildInputs = [
29+
python3Packages.setuptools
30+
];
31+
32+
dontUseMakeBuild = true;
33+
dontUseMakeInstall = true;
34+
35+
installPhase = ''
36+
runHook preInstall
37+
python setup.py install \
38+
--prefix=$out \
39+
--single-version-externally-managed \
40+
--root=/
41+
runHook postInstall
42+
'';
43+
44+
passthru.updateScript = nix-update-script { };
45+
46+
meta = {
47+
description = "Set of tools and libraries to help with automated testing";
48+
homepage = "https://avocado-framework.github.io/";
49+
license = lib.licenses.gpl2Plus;
50+
maintainers = with lib.maintainers; [ VZstless ];
51+
mainProgram = "avocado";
52+
};
53+
})

0 commit comments

Comments
 (0)