nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, setuptools-scm
6}:
7
8buildPythonPackage rec {
9 pname = "jaraco-context";
10 version = "4.1.1";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.6";
14
15 src = fetchFromGitHub {
16 owner = "jaraco";
17 repo = "jaraco.context";
18 rev = "v${version}";
19 sha256 = "O9Lwv2d/qbiXxIVCp6FLmVKaz0MzAUkoUd0jAyIvgJc=";
20 };
21
22 SETUPTOOLS_SCM_PRETEND_VERSION = version;
23
24 pythonNamespaces = [
25 "jaraco"
26 ];
27
28 nativeBuildInputs = [
29 setuptools-scm
30 ];
31
32 # Module has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [ "jaraco.context" ];
36
37
38 meta = with lib; {
39 description = "Python module for context management";
40 homepage = "https://github.com/jaraco/jaraco.context";
41 license = licenses.mit;
42 maintainers = with maintainers; [ fab ];
43 };
44}