1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 cmake,
6}:
7
8stdenv.mkDerivation {
9 pname = "pystring";
10 version = "1.1.4-unstable-2025-06-23";
11
12 src = fetchFromGitHub {
13 owner = "imageworks";
14 repo = "pystring";
15 rev = "02ef1186d6b77bc35f385bd4db2da75b4736adb7";
16 hash = "sha256-M0/nDxeRo8NBQ3/SvBc0i5O4ImIP/A8ry/jA27dLybg=";
17 };
18
19 nativeBuildInputs = [ cmake ];
20
21 doCheck = true;
22
23 meta = with lib; {
24 homepage = "https://github.com/imageworks/pystring/";
25 description = "Collection of C++ functions which match the interface and behavior of python's string class methods using std::string";
26 license = licenses.bsd3;
27 maintainers = [ maintainers.rytone ];
28 platforms = platforms.unix;
29 };
30}