mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +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.
27 lines
599 B
Nix
27 lines
599 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, unittestCheckHook
|
|
, pythonAtLeast
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pathlib";
|
|
version = "1.0.1";
|
|
disabled = pythonAtLeast "3.4"; # Was added to std library in Python 3.4
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39";
|
|
};
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
meta = {
|
|
description = "Object-oriented filesystem paths";
|
|
homepage = "https://pathlib.readthedocs.org/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ costrouc ];
|
|
};
|
|
}
|