nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 packaging,
6 pretend,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "packaging-legacy";
13 version = "23.0.post0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "di";
18 repo = "packaging_legacy";
19 tag = version;
20 hash = "sha256-2TnJjxasC8+c+qHY60e6Jyqhf1nQJfj/tmIA/LvUsT8=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [ packaging ];
26
27 nativeCheckInputs = [
28 pretend
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "packaging_legacy" ];
33
34 meta = {
35 description = "Module to support for legacy Python Packaging functionality";
36 homepage = "https://github.com/di/packaging_legacy";
37 license = lib.licenses.bsd2;
38 maintainers = with lib.maintainers; [ fab ];
39 };
40}