mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 18:44:07 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
28 lines
659 B
Nix
28 lines
659 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, future }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "commonmark";
|
|
version = "0.9.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60";
|
|
};
|
|
|
|
preCheck = ''
|
|
export LC_ALL="en_US.UTF-8"
|
|
'';
|
|
|
|
# UnicodeEncodeError on Python 2
|
|
doCheck = isPy3k;
|
|
|
|
nativeCheckInputs = [ glibcLocales ];
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
meta = with lib; {
|
|
description = "Python parser for the CommonMark Markdown spec";
|
|
homepage = "https://github.com/rolandshoemaker/CommonMark-py";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|