git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.base36: init at 0.1.1
55cc3ceFabian Affolter
pkgs/development/python-modules/base36/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytestCheckHook
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "base36";
9+ version = "0.1.1";
10+
11+ src = fetchFromGitHub {
12+ owner = "tonyseek";
13+ repo = "python-base36";
14+ rev = "v${version}";
15+ sha256 = "076nmk9s0zkmgs2zqzkaqij5cmzhf4mrhivbb9n6cvz52i1mppr5";
16+ };
17+
18+ postPatch = ''
19+ substituteInPlace setup.cfg \
20+ --replace "[pytest]" "[tool:pytest]" \
21+ --replace "--pep8 --cov" ""
22+ '';
23+
24+ checkInputs = [ pytestCheckHook ];
25+
26+ pytestFlagsArray = [ "test_base36.py" ];
27+ pythonImportsCheck = [ "base36" ];
28+
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+ };
35+}
pkgs/top-level/python-packages.nix+2
@@ -832,6 +832,8 @@ in {
832
832
833 baron = callPackage ../development/python-modules/baron { };
833 baron = callPackage ../development/python-modules/baron { };
834
834
835+ base36 = callPackage ../development/python-modules/base36 { };
836+
835 base58 = callPackage ../development/python-modules/base58 { };
837 base58 = callPackage ../development/python-modules/base58 { };
836
838
837 baselines = callPackage ../development/python-modules/baselines { };
839 baselines = callPackage ../development/python-modules/baselines { };