nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 wcwidth,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "beautifultable";
11 version = "1.1.0";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "pri22296";
16 repo = "beautifultable";
17 rev = "v${version}";
18 hash = "sha256-/SReCEvSwiNjBoz/3tGJ9zUNBAag4mLsHlUXwm47zCw=";
19 };
20
21 propagatedBuildInputs = [ wcwidth ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 enabledTestPaths = [ "test.py" ];
26
27 pythonImportsCheck = [ "beautifultable" ];
28
29 meta = {
30 description = "Python package for printing visually appealing tables";
31 homepage = "https://github.com/pri22296/beautifultable";
32 license = with lib.licenses; [ mit ];
33 maintainers = with lib.maintainers; [ fab ];
34 };
35}