Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 fetchFromGitHub,
4 python3Packages,
5}:
6python3Packages.buildPythonApplication rec {
7 pname = "vermin";
8 version = "1.6.0";
9 pyproject = true;
10
11 src = fetchFromGitHub {
12 owner = "netromdk";
13 repo = "vermin";
14 rev = "v${version}";
15 hash = "sha256-lgxYQ8oNfa0+8BUf3nRv0fcNLP+UATjz733ms3pM6gQ=";
16 };
17
18 build-system = with python3Packages; [
19 setuptools
20 ];
21
22 dependencies = with python3Packages; [
23 setuptools
24 ];
25
26 checkPhase = ''
27 runHook preCheck
28 python runtests.py
29 runHook postCheck
30 '';
31
32 meta = {
33 mainProgram = "vermin";
34 homepage = "https://github.com/netromdk/vermin";
35 changelog = "https://github.com/netromdk/vermin/releases/tag/v${version}";
36 description = "Concurrently detect the minimum Python versions needed to run code";
37 license = lib.licenses.mit;
38 maintainers = [ lib.maintainers.fidgetingbits ];
39 };
40}