mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 05:00:19 +00:00

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.
27 lines
542 B
Nix
27 lines
542 B
Nix
{ lib, buildPythonPackage, fetchPypi, six, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "latexcodec";
|
|
version = "2.0.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "16pynfnn8y8xp55yp06i721fccv5dlx9ba6k5bzcwq9j6wf5b8ia";
|
|
};
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
nativeCheckInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mcmtroffaes/latexcodec";
|
|
description = "Lexer and codec to work with LaTeX code in Python";
|
|
license = licenses.mit;
|
|
};
|
|
|
|
}
|