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