ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pycmarkgfm / default.nix
blob348bca8d49e7b3246c1fc080a4f1a42f738c9ce1
1 { lib, buildPythonPackage, fetchPypi, isPy27, cffi, pytest }:
3 buildPythonPackage rec {
4   pname = "pycmarkgfm";
5   version = "1.1.0";
6   disabled = isPy27;
8   src = fetchPypi {
9     inherit pname version;
10     sha256 = "694cb242f4961437c30b5b015dfbce9d1a1fa48305c2e39f902ce7c65b4cbe0e";
11   };
13   propagatedNativeBuildInputs = [ cffi ];
15   propagatedBuildInputs = [ cffi ];
17   # I would gladly use pytestCheckHook, but pycmarkgfm relies on a native
18   # extension (cmark.so, built through setup.py), and pytestCheckHook runs
19   # pytest in an environment that does not contain this extension, which fails.
20   # cmarkgfm has virtually the same build setup as this package, and uses the
21   # same trick: pkgs/development/python-modules/cmarkgfm/default.nix
22   checkInputs = [ pytest ];
23   checkPhase = ''
24     pytest
25   '';
27   meta = with lib; {
28     homepage = "https://github.com/zopieux/pycmarkgfm";
29     description = "Bindings to GitHub's Flavored Markdown (cmark-gfm), with enhanced support for task lists";
30     platforms = platforms.linux ++ platforms.darwin;
31     license = licenses.gpl3Plus;
32     maintainers = with maintainers; [ zopieux ];
33   };