Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 761 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, six 5, pythonOlder 6, scandir 7, glibcLocales 8, mock 9}: 10 11buildPythonPackage rec { 12 pname = "pathlib2"; 13 version = "2.3.3"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "25199318e8cc3c25dcb45cbe084cc061051336d5a9ea2a12448d3d8cb748f742"; 18 }; 19 20 propagatedBuildInputs = [ six ] ++ lib.optional (pythonOlder "3.5") scandir; 21 checkInputs = [ glibcLocales ] ++ lib.optional (pythonOlder "3.3") mock; 22 23 preCheck = '' 24 export LC_ALL="en_US.UTF-8" 25 ''; 26 27 meta = { 28 description = "This module offers classes representing filesystem paths with semantics appropriate for different operating systems."; 29 homepage = https://pypi.python.org/pypi/pathlib2/; 30 license = with lib.licenses; [ mit ]; 31 }; 32}