evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / base36 / default.nix
blob33909a6c942ac7a22e24e3948437746c5dcfc862
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6 }:
8 buildPythonPackage rec {
9   pname = "base36";
10   version = "0.1.1";
11   format = "setuptools";
13   src = fetchFromGitHub {
14     owner = "tonyseek";
15     repo = "python-base36";
16     rev = "v${version}";
17     sha256 = "076nmk9s0zkmgs2zqzkaqij5cmzhf4mrhivbb9n6cvz52i1mppr5";
18   };
20   postPatch = ''
21     substituteInPlace setup.cfg \
22       --replace "[pytest]" "[tool:pytest]" \
23       --replace "--pep8 --cov" ""
24   '';
26   nativeCheckInputs = [ pytestCheckHook ];
28   pytestFlagsArray = [ "test_base36.py" ];
29   pythonImportsCheck = [ "base36" ];
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   };