1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6}:
7
8buildPythonPackage rec {
9 pname = "base36";
10 version = "0.1.1";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "tonyseek";
15 repo = "python-base36";
16 rev = "v${version}";
17 sha256 = "076nmk9s0zkmgs2zqzkaqij5cmzhf4mrhivbb9n6cvz52i1mppr5";
18 };
19
20 postPatch = ''
21 substituteInPlace setup.cfg \
22 --replace "[pytest]" "[tool:pytest]" \
23 --replace "--pep8 --cov" ""
24 '';
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 enabledTestPaths = [ "test_base36.py" ];
29 pythonImportsCheck = [ "base36" ];
30
31 meta = with lib; {
32 description = "Python implementation for the positional numeral system using 36 as the radix";
33 homepage = "https://github.com/tonyseek/python-base36";
34 license = with licenses; [ mit ];
35 maintainers = with maintainers; [ fab ];
36 };
37}