Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / whichcraft / default.nix
blobc68925b46ae3a5385b21b7b6d5b651d9b778c13f
1 { lib, buildPythonPackage, fetchPypi, pytest, glibcLocales }:
3 buildPythonPackage rec {
4   pname = "whichcraft";
5   version = "0.6.1";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc";
10   };
12   LC_ALL="en_US.utf-8";
13   buildInputs = [ glibcLocales ];
15   nativeCheckInputs = [ pytest ];
17   checkPhase = ''
18     py.test
19   '';
21   meta = with lib; {
22     homepage = "https://github.com/pydanny/whichcraft";
23     description = "Cross-platform cross-python shutil.which functionality";
24     license = licenses.bsd3;
25   };