Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / textile / default.nix
blob01686e4fc2acc99157895f9a53be3d0f8d67d3d5
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , html5lib
5 , pytestCheckHook
6 , pythonOlder
7 , regex
8 }:
10 buildPythonPackage rec {
11   pname = "textile";
12   version = "4.0.2";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = pname;
19     repo = "python-textile";
20     rev = version;
21     hash = "sha256-WwX7h07Bq8sNsViHwmfhrrqleXacmrIY4ZBBaP2kKnI=";
22   };
24   propagatedBuildInputs = [
25     html5lib
26     regex
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   postPatch = ''
34     substituteInPlace pytest.ini \
35       --replace " --cov=textile --cov-report=html --cov-append --cov-report=term-missing" ""
36   '';
38   pythonImportsCheck = [
39     "textile"
40   ];
42   meta = with lib; {
43     description = "MOdule for generating web text";
44     mainProgram = "pytextile";
45     homepage = "https://github.com/textile/python-textile";
46     license = licenses.bsd3;
47     maintainers = with maintainers; [ fab ];
48   };