Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 6 # build-system 7 pdm-pep517, 8 9 # dependencies 10 numpy, 11 12 # tests 13 pytestCheckHook, 14}: 15 16buildPythonPackage rec { 17 pname = "plyfile"; 18 version = "1.0.2"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "dranjan"; 23 repo = "python-plyfile"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-HlyqljfjuaZoG5f2cfDQj+7KS0en7pW2PPEnpvH8U+E="; 26 }; 27 28 nativeBuildInputs = [ pdm-pep517 ]; 29 30 propagatedBuildInputs = [ numpy ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 meta = with lib; { 35 description = "NumPy-based text/binary PLY file reader/writer for Python"; 36 homepage = "https://github.com/dranjan/python-plyfile"; 37 maintainers = with maintainers; [ abbradar ]; 38 }; 39}