depot/third_party/nixpkgs/pkgs/development/python-modules/whichcraft/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

27 lines
601 B
Nix

{ lib, buildPythonPackage, fetchPypi, pytest, glibcLocales }:
buildPythonPackage rec {
pname = "whichcraft";
version = "0.6.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc";
};
LC_ALL="en_US.utf-8";
buildInputs = [ glibcLocales ];
nativeCheckInputs = [ pytest ];
checkPhase = ''
py.test
'';
meta = with lib; {
homepage = "https://github.com/pydanny/whichcraft";
description = "Cross-platform cross-python shutil.which functionality";
license = licenses.bsd3;
};
}