summary refs log tree commit diff
path: root/pkgs/development/python-modules/whichcraft/default.nix
blob: 498c1c401f817c1199f733b6ab2a2751a5888ae4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, buildPythonPackage, fetchPypi, pytest, glibcLocales }:

buildPythonPackage rec {
  pname = "whichcraft";
  version = "0.5.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "fecddd531f237ffc5db8b215409afb18fa30300699064cca4817521b4fc81815";
  };

  LC_ALL="en_US.utf-8";
  buildInputs = [ glibcLocales ];

  checkInputs = [ pytest ];

  checkPhase = ''
    py.test
  '';

  meta = with lib; {
    homepage = https://github.com/pydanny/whichcraft;
    description = "Cross-platform cross-python shutil.which functionality";
    license = licenses.bsd3;
  };
}