nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 hatch-vcs,
8 hatchling,
9
10 # dependencies
11 tomlkit,
12}:
13
14buildPythonPackage (finalAttrs: {
15 pname = "hatch-min-requirements";
16 version = "0.2.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "tlambert03";
21 repo = "hatch-min-requirements";
22 tag = "v${finalAttrs.version}";
23 hash = "sha256-QKO5fVvjSqwY+48Fc8sAiZazrxZ4eBYxzVElHr2lcEA=";
24 };
25
26 build-system = [
27 hatchling
28 hatch-vcs
29 ];
30
31 dependencies = [
32 tomlkit
33 ];
34
35 # As of v0.1.0 all tests attempt to use the network
36 doCheck = false;
37
38 pythonImportsCheck = [ "hatch_min_requirements" ];
39
40 meta = {
41 description = "Hatchling plugin to create optional-dependencies pinned to minimum versions";
42 homepage = "https://github.com/tlambert03/hatch-min-requirements";
43 changelog = "https://github.com/tlambert03/hatch-min-requirements/releases/tag/${finalAttrs.src.tag}";
44 license = lib.licenses.bsd3;
45 maintainers = with lib.maintainers; [
46 samuela
47 ];
48 };
49})