Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / base36 / default.nix
blob92b4faf7d9e64cdd42aa61c50778099440c01c6a
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 }:
7 buildPythonPackage rec {
8   pname = "base36";
9   version = "0.1.1";
11   src = fetchFromGitHub {
12     owner = "tonyseek";
13     repo = "python-base36";
14     rev = "v${version}";
15     sha256 = "076nmk9s0zkmgs2zqzkaqij5cmzhf4mrhivbb9n6cvz52i1mppr5";
16   };
18   postPatch = ''
19     substituteInPlace setup.cfg \
20       --replace "[pytest]" "[tool:pytest]" \
21       --replace "--pep8 --cov" ""
22   '';
24   nativeCheckInputs = [ pytestCheckHook ];
26   pytestFlagsArray = [ "test_base36.py" ];
27   pythonImportsCheck = [ "base36" ];
29   meta = with lib; {
30     description = "Python implementation for the positional numeral system using 36 as the radix";
31     homepage = "https://github.com/tonyseek/python-base36";
32     license = with licenses; [ mit ];
33     maintainers = with maintainers; [ fab ];
34   };