nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchFromGitHub,
5}:
6
7python3.pkgs.buildPythonApplication (finalAttrs: {
8 pname = "fertilizer";
9 version = "0.3.0";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "moleculekayak";
14 repo = "fertilizer";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-sDoAjEiKxHf+HtFLZr6RwuXN+rl0ZQnFUoQ09QiE6Xc=";
17 };
18
19 build-system = with python3.pkgs; [ setuptools ];
20
21 dependencies = with python3.pkgs; [
22 bencoder
23 colorama
24 flask
25 requests
26 ];
27
28 nativeCheckInputs = with python3.pkgs; [
29 pytestCheckHook
30 requests-mock
31 ];
32
33 pythonImportsCheck = [ "fertilizer" ];
34
35 meta = {
36 description = "Cross-seeding tool for music";
37 homepage = "https://github.com/moleculekayak/fertilizer";
38 changelog = "https://github.com/moleculekayak/fertilizer/releases";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ ambroisie ];
41 mainProgram = "fertilizer";
42 };
43})